summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2008-08-23 12:06:58 -0400
committerTodd Zullinger <tmz@pobox.com>2008-08-23 12:06:58 -0400
commitf40a54715a6629f8dbbae56cdd408eef90adadaf (patch)
treecffd5e857521b63dcfc44169fb2a66e22f60d299
parentb74520105f3a5233c786b6d44bb0696822d373ca (diff)
downloadlibgpod-tmz-python-container-methods-old.tar.gz
libgpod-tmz-python-container-methods-old.tar.xz
libgpod-tmz-python-container-methods-old.zip
-rw-r--r--bindings/python/tests/tests.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/bindings/python/tests/tests.py b/bindings/python/tests/tests.py
index f52015e..9dce5d8 100644
--- a/bindings/python/tests/tests.py
+++ b/bindings/python/tests/tests.py
@@ -18,7 +18,7 @@ class TestiPodFunctions(unittest.TestCase):
os.mkdir(music_dir)
for i in range(0,20):
os.mkdir(os.path.join(music_dir,"f%02d" % i))
- self.db = gpod.Database(self.mp)
+ self.db = gpod.Database(self.mp)
def tearDown(self):
shutil.rmtree(self.mp)
@@ -38,13 +38,13 @@ class TestiPodFunctions(unittest.TestCase):
trackname = os.path.join(self.mp,
'iPod_Control',
'tiny.mp3')
-
+
pl = self.db.new_Playlist('my title')
self.assertEqual(len(pl),0)
t = self.db.new_Track(filename=trackname)
pl.add(t)
self.assertEqual(len(pl),1)
-
+
def testAddTrack(self):
trackname = os.path.join(self.mp,
'iPod_Control',
@@ -79,9 +79,9 @@ class TestiPodFunctions(unittest.TestCase):
t['time_added'] = time.mktime(date.timetuple())
self.assertEqual(date.year, t['time_added'].year)
self.assertEqual(date.second, t['time_added'].second)
-
+
def testVersion(self):
- self.assertEqual(type(gpod.version_info),
+ self.assertEqual(type(gpod.version_info),
types.TupleType)
class TestPhotoDatabase(unittest.TestCase):
@@ -134,7 +134,7 @@ class TestPhotoDatabase(unittest.TestCase):
def testEnumeratePhotoAlbums(self):
[photo for photo in self.db.PhotoAlbums]
-
+
def testAddPhoto(self):
photoname = os.path.join(self.mp,
'iPod_Control',
@@ -185,7 +185,7 @@ class TestPhotoDatabase(unittest.TestCase):
def testEnumeratePhotosThumbs(self):
for album in self.db.PhotoAlbums:
for photo in album:
- [thumb for thumb in photo.thumbnails]
-
+ [thumb for thumb in photo.thumbnails]
+
if __name__ == '__main__':
unittest.main()