From f30b8b598f7b626ca11677cf8cb74afb47657e20 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 3 Mar 2013 19:39:35 +0100 Subject: [PATCH] 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 --- morituri/test/test_image_toc.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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