From aa869769be7dfceda70774e1cde1f1fd543da9cd Mon Sep 17 00:00:00 2001 From: Nicholas Piper Date: Thu, 12 Jul 2007 13:15:26 +0000 Subject: Add version and version_info attributes to the Python bindings git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1633 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- bindings/python/tests/tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bindings/python/tests') diff --git a/bindings/python/tests/tests.py b/bindings/python/tests/tests.py index c402ac1..bdae7cb 100644 --- a/bindings/python/tests/tests.py +++ b/bindings/python/tests/tests.py @@ -2,6 +2,7 @@ import unittest import shutil import tempfile import os +import types gpod = __import__('__init__') @@ -61,6 +62,9 @@ class TestiPodFunctions(unittest.TestCase): self.assertEqual(len(self.db),n) self.db.remove(track, ipod=True) self.failIf(os.path.exists(track_file)) - + + def testVersion(self): + self.assertEqual(type(gpod.version_info), + types.TupleType) if __name__ == '__main__': unittest.main() -- cgit