summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortmzullinger <tmzullinger@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-08-23 18:03:52 +0000
committertmzullinger <tmzullinger@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2008-08-23 18:03:52 +0000
commit3f1e901ee5fe81afdb0301eea4daa15e639b9c5a (patch)
treed8a96960ef17cb0a74903c76776444ec04b040fa
parent21f833e2ffc6e031d5d3421e9dabf38069cf4896 (diff)
downloadlibgpod-3f1e901ee5fe81afdb0301eea4daa15e639b9c5a.tar.gz
libgpod-3f1e901ee5fe81afdb0301eea4daa15e639b9c5a.tar.xz
libgpod-3f1e901ee5fe81afdb0301eea4daa15e639b9c5a.zip
Python: Whitespace cleanup of tests.py
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@2111 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r--ChangeLog3
-rw-r--r--bindings/python/tests/tests.py10
2 files changed, 8 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 8ab1b1d..11b9c87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,9 @@
pairs() methods were renamed to values() and items(),
respectively, in the Track and Photo classes.
+ * bindings/python/tests/tests.py:
+ Whitespace cleanup
+
2008-08-20 Todd Zullinger <tmzullinger at users.sourceforge.net>
* bindings/python/examples/save_photos.py
diff --git a/bindings/python/tests/tests.py b/bindings/python/tests/tests.py
index 6ebb8ff..5b36fd0 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',
@@ -86,7 +86,7 @@ class TestiPodFunctions(unittest.TestCase):
self.failUnless('title' in track)
def testVersion(self):
- self.assertEqual(type(gpod.version_info),
+ self.assertEqual(type(gpod.version_info),
types.TupleType)
class TestPhotoDatabase(unittest.TestCase):
@@ -139,7 +139,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',