[SCM] morituri/master: add more asserts on the current code for strokes

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:10:11 UTC 2014


The following commit has been merged in the master branch:
commit f30b8b598f7b626ca11677cf8cb74afb47657e20
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sun Mar 3 19:39:35 2013 +0100

    add more asserts on the current code for strokes
    
    this shows that some of the logic may be wrong; track 1 index 1
    should have relative 0 as it draws from the file, not silence

diff --git a/morituri/test/test_image_toc.py b/morituri/test/test_image_toc.py
index 24e9345..2ffebec 100644
--- a/morituri/test/test_image_toc.py
+++ b/morituri/test/test_image_toc.py
@@ -335,8 +335,23 @@ class StrokesTestCase(common.TestCase):
 
     def testIndexes(self):
         t = self.toc.table.tracks[0]
-        self.assertEquals(t.getIndex(0).relative, 0)
-        self.assertEquals(t.getIndex(1).relative, 1)
+        i0 = t.getIndex(0)
+        self.assertEquals(i0.relative, 0)
+        self.assertEquals(i0.absolute, 0)
+        # FIXME: this is what we should have
+        # self.assertEquals(i0.counter, 0)
+        # self.assertEquals(i0.path, None)
+        # FIXME: this is what it is right now
+        self.assertEquals(i0.counter, 1)
+        self.assertEquals(i0.path, u'data.wav')
+
+        i1 = t.getIndex(1)
+        # FIXME: relative should be 0, as it should point to the start
+        # of data.wav
+        self.assertEquals(i1.relative, 1)
+        self.assertEquals(i1.absolute, 1)
+        self.assertEquals(i1.counter, 1)
+        self.assertEquals(i1.path, u'data.wav')
 
 
 # Surfer Rosa has

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list