[SCM] morituri/master: strokes test case is now correct

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 bf3db822dd0ef6dbbefa6293687eeda0ad9ee4d9
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Tue Aug 20 00:43:35 2013 +0200

    strokes test case is now correct

diff --git a/morituri/test/test_image_toc.py b/morituri/test/test_image_toc.py
index f5241f8..803040b 100644
--- a/morituri/test/test_image_toc.py
+++ b/morituri/test/test_image_toc.py
@@ -360,17 +360,11 @@ class StrokesTestCase(common.TestCase):
         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')
+        self.assertEquals(i0.counter, 0)
+        self.assertEquals(i0.path, None)
 
         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.relative, 0)
         self.assertEquals(i1.absolute, 1)
         self.assertEquals(i1.counter, 1)
         self.assertEquals(i1.path, u'data.wav')
@@ -378,9 +372,7 @@ class StrokesTestCase(common.TestCase):
         cue = self._filterCue(self.toc.table.cue())
         ref = self._filterCue(open(os.path.join(os.path.dirname(__file__),
             'strokes-someday.eac.cue')).read())
-        # FIXME: this diff should match
-        # common.diffStrings(cue, ref)
-        self.assertRaises(AssertionError, common.diffStrings, cue, ref)
+        common.diffStrings(cue, ref)
 
     def _filterCue(self, output):
         # helper to be able to compare our generated .cue with the

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list