[SCM] morituri/master: fix expectations on surfer rosa test

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


The following commit has been merged in the master branch:
commit 9f2ff9ee52e771bd147b11527e97908ade75834a
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Tue Aug 20 01:05:33 2013 +0200

    fix expectations on surfer rosa test
    
    looks like it was interpreting relative on an index02 relative to the
    track's index 00, instead of relative to the source

diff --git a/morituri/test/test_image_toc.py b/morituri/test/test_image_toc.py
index 803040b..49d56b8 100644
--- a/morituri/test/test_image_toc.py
+++ b/morituri/test/test_image_toc.py
@@ -402,6 +402,9 @@ class StrokesTestCase(common.TestCase):
 # Surfer Rosa has
 # track 00 consisting of 32 frames of SILENCE
 # track 11 Vamos with an INDEX 02
+# compared to an EAC single .cue file, all our offsets are 32 frames off
+# because the toc uses silence for track 01 index 00 while EAC puts it in
+# Range.wav
 
 
 class SurferRosaTestCase(common.TestCase):
@@ -425,7 +428,7 @@ class SurferRosaTestCase(common.TestCase):
         self.assertEquals(i0.counter, 0)
 
         i1 = t.getIndex(1)
-        self.assertEquals(i1.relative, 32)
+        self.assertEquals(i1.relative, 0)
         self.assertEquals(i1.absolute, 32)
         self.assertEquals(i1.path, 'data.wav')
         self.assertEquals(i1.counter, 1)
@@ -436,13 +439,10 @@ class SurferRosaTestCase(common.TestCase):
         self.assertEquals(len(t.indexes), 2)
 
         # 32 frames of silence, and 1483 seconds of data.wav
-        self.assertEquals(t.getIndex(1).relative, 111257)
+        self.assertEquals(t.getIndex(1).relative, 111225)
         self.assertEquals(t.getIndex(1).absolute, 111257)
-        self.assertEquals(t.getIndex(2).relative, 3370)
-        self.assertEquals(t.getIndex(2).absolute, None)
-
-        # self.toc.table.absolutize()
-        self.assertEquals(t.getIndex(2).absolute, 3370)
+        self.assertEquals(t.getIndex(2).relative, 111225 + 3370)
+        self.assertEquals(t.getIndex(2).absolute, 111257 + 3370)
 
 #        print self.toc.table.cue()
 

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list