* morituri/test/test_image_toc.py:
* morituri/test/bloc.cue (added): Add an expected .cue file for the bloc party toc.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2009-05-15 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* morituri/test/test_image_toc.py:
|
||||
* morituri/test/bloc.cue (added):
|
||||
Add an expected .cue file for the bloc party toc.
|
||||
|
||||
2009-05-15 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* morituri/image/toc.py:
|
||||
|
||||
38
morituri/test/bloc.cue
Normal file
38
morituri/test/bloc.cue
Normal file
@@ -0,0 +1,38 @@
|
||||
REM DISCID AD0BDF0D
|
||||
REM COMMENT "Morituri"
|
||||
FILE "data.wav" WAVE
|
||||
TRACK 01 AUDIO
|
||||
INDEX 00 00:00:00
|
||||
INDEX 01 03:22:70
|
||||
TRACK 02 AUDIO
|
||||
INDEX 01 07:44:69
|
||||
TRACK 03 AUDIO
|
||||
INDEX 01 11:25:07
|
||||
TRACK 04 AUDIO
|
||||
INDEX 01 15:20:40
|
||||
TRACK 05 AUDIO
|
||||
INDEX 00 18:40:70
|
||||
INDEX 01 18:41:67
|
||||
TRACK 06 AUDIO
|
||||
INDEX 00 21:28:35
|
||||
INDEX 01 21:29:01
|
||||
TRACK 07 AUDIO
|
||||
INDEX 00 24:58:10
|
||||
INDEX 01 24:58:27
|
||||
TRACK 08 AUDIO
|
||||
INDEX 00 29:23:69
|
||||
INDEX 01 29:23:73
|
||||
TRACK 09 AUDIO
|
||||
INDEX 00 32:59:09
|
||||
INDEX 01 32:59:20
|
||||
TRACK 10 AUDIO
|
||||
INDEX 01 37:18:72
|
||||
TRACK 11 AUDIO
|
||||
INDEX 00 41:11:21
|
||||
INDEX 01 41:11:64
|
||||
TRACK 12 AUDIO
|
||||
INDEX 00 45:07:40
|
||||
INDEX 01 45:09:06
|
||||
TRACK 13 AUDIO
|
||||
INDEX 00 49:19:06
|
||||
INDEX 01 49:19:28
|
||||
@@ -88,6 +88,11 @@ class CureTestCase(unittest.TestCase):
|
||||
ref = open(os.path.join(os.path.dirname(__file__), 'cure.cue')).read()
|
||||
self.assertEquals(cue, ref)
|
||||
|
||||
# we verify it because it has failed in readdisc in the past
|
||||
self.assertEquals(self.toc.table.getAccurateRipURL(),
|
||||
'http://www.accuraterip.com/accuraterip/'
|
||||
'3/c/4/dBAR-013-0019d4c3-00fe8924-b90c650d.bin')
|
||||
|
||||
# Bloc Party - Silent Alarm has a Hidden Track One Audio
|
||||
class BlocTestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
@@ -111,6 +116,15 @@ class BlocTestCase(unittest.TestCase):
|
||||
self.assertEquals(t.getIndex(0).relative, 0)
|
||||
self.assertEquals(t.getIndex(1).relative, 15220)
|
||||
|
||||
# This disc has a pre-gap, so is a good test for .CUE writing
|
||||
def testConvertCue(self):
|
||||
self.failIf(self.toc.table.hasTOC())
|
||||
self.toc.table.absolutize()
|
||||
self.failUnless(self.toc.table.hasTOC())
|
||||
cue = self.toc.table.cue()
|
||||
ref = open(os.path.join(os.path.dirname(__file__),
|
||||
'bloc.cue')).read()
|
||||
self.assertEquals(cue, ref)
|
||||
# The Breeders - Mountain Battles has CDText
|
||||
class BreedersTestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
|
||||
Reference in New Issue
Block a user