From 6cd722d9507200a90b7c99dcb6749187aa757f87 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 4 Oct 2010 13:17:25 +0200 Subject: pytdb: Add __version__ attribute. --- lib/tdb/python/tests/simple.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/tdb/python/tests/simple.py') diff --git a/lib/tdb/python/tests/simple.py b/lib/tdb/python/tests/simple.py index 6386a2871f..f5484a0523 100644 --- a/lib/tdb/python/tests/simple.py +++ b/lib/tdb/python/tests/simple.py @@ -165,6 +165,12 @@ class SimpleTdbTests(TestCase): self.tdb.remove_flags(tdb.NOMMAP) +class VersionTests(TestCase): + + def test_present(self): + self.assertTrue(isinstance(tdb.__version__, str)) + + if __name__ == '__main__': import unittest unittest.TestProgram() -- cgit