From 6929f89478f7790f37ad3a0b39212dde89310331 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Fri, 22 May 2009 20:13:10 +0000 Subject: [PATCH] add a test that doesn't work yet --- morituri/test/test_image_toc.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/morituri/test/test_image_toc.py b/morituri/test/test_image_toc.py index 6c3dc4f..4c9f88d 100644 --- a/morituri/test/test_image_toc.py +++ b/morituri/test/test_image_toc.py @@ -183,3 +183,21 @@ class LadyhawkeTestCase(unittest.TestCase): # c60af50d 13 150 15687 31841 51016 66616 81352 99559 116070 133243 # 149997 161710 177832 207256 2807 +# Das Capital has a htoa and a data track +# the fast.toc was generated with cdrdao read-toc --fast-toc --session 9 +class CapitalTestCase(unittest.TestCase): + def setUp(self): + self.toc = toc.TocFile(os.path.join(os.path.dirname(__file__), + 'capital.fast.toc')) + self.toc.parse() + self.assertEquals(len(self.toc.table.tracks), 12) + #import code; code.interact(local=locals()) + self.failIf(self.toc.table.tracks[-1].audio) + + def testCDDBId(self): + self.toc.table.absolutize() + #self.assertEquals(self.toc.table.getCDDBDiscId(), 'b910140c') + # output from cd-discid: + # b910140c 12 24320 44855 64090 77885 88095 104020 118245 129255 141765 164487 181780 209250 4440 + testCDDBId.skip = 'not implemented yet' +