[SCM] morituri/master: update tests
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:10:12 UTC 2014
The following commit has been merged in the master branch:
commit d1940b639f10352cc08bb09185101c9449dfcef5
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Sun Aug 18 21:58:45 2013 +0200
update tests
diff --git a/morituri/test/test_image_toc.py b/morituri/test/test_image_toc.py
index 0ae3e90..a5bd4de 100644
--- a/morituri/test/test_image_toc.py
+++ b/morituri/test/test_image_toc.py
@@ -23,7 +23,10 @@ class CureTestCase(common.TestCase):
def testGetTrackLength(self):
t = self.toc.table.tracks[0]
# first track has known length because the .toc is a single file
- self.assertEquals(self.toc.getTrackLength(t), 28324)
+ # its length is all of track 1 from .toc, plus the INDEX 00 length
+ # of track 2
+ self.assertEquals(self.toc.getTrackLength(t),
+ (((6 * 60) + 16) * 75 + 45) + ((1 * 75) + 4))
# last track has unknown length
t = self.toc.table.tracks[-1]
self.assertEquals(self.toc.getTrackLength(t), -1)
@@ -403,10 +406,18 @@ class SurferRosaTestCase(common.TestCase):
# HTOA
t = self.toc.table.tracks[0]
self.assertEquals(len(t.indexes), 2)
- self.assertEquals(t.getIndex(0).relative, 0)
- self.assertEquals(t.getIndex(0).absolute, 0)
- self.assertEquals(t.getIndex(1).relative, 32)
- self.assertEquals(t.getIndex(1).absolute, 32)
+
+ i0 = t.getIndex(0)
+ self.assertEquals(i0.relative, 0)
+ self.assertEquals(i0.absolute, 0)
+ self.assertEquals(i0.path, None)
+ self.assertEquals(i0.counter, 0)
+
+ i1 = t.getIndex(1)
+ self.assertEquals(i1.relative, 32)
+ self.assertEquals(i1.absolute, 32)
+ self.assertEquals(i1.path, 'data.wav')
+ self.assertEquals(i1.counter, 1)
# track 11, Vamos
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list