diff options
author | Nicholas Piper <nicholas@users.sourceforge.net> | 2007-07-12 13:15:26 +0000 |
---|---|---|
committer | Nicholas Piper <nicholas@users.sourceforge.net> | 2007-07-12 13:15:26 +0000 |
commit | aa869769be7dfceda70774e1cde1f1fd543da9cd (patch) | |
tree | c312c66ce03ff4939cb01d282f1b1c938d2c0b5e /bindings/python/tests | |
parent | 0d5e974b92f6385f644e736726fcc22a287916e3 (diff) | |
download | libgpod-aa869769be7dfceda70774e1cde1f1fd543da9cd.tar.gz libgpod-aa869769be7dfceda70774e1cde1f1fd543da9cd.tar.xz libgpod-aa869769be7dfceda70774e1cde1f1fd543da9cd.zip |
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
Diffstat (limited to 'bindings/python/tests')
-rw-r--r-- | bindings/python/tests/tests.py | 6 |
1 files changed, 5 insertions, 1 deletions
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() |