[SCM] morituri/master: * morituri/test/test_image_toc.py: * morituri/test/bloc.cue (added): Add an expected .cue file for the bloc party toc.
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:08:59 UTC 2014
The following commit has been merged in the master branch:
commit 2962bd98f81e711ad563920b32530046fbe98472
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Fri May 15 19:32:45 2009 +0000
* morituri/test/test_image_toc.py:
* morituri/test/bloc.cue (added):
Add an expected .cue file for the bloc party toc.
diff --git a/ChangeLog b/ChangeLog
index 43d2857..f399a23 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
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:
Calculate the leadout from the sum of the track lengths.
* morituri/test/breeders.cue:
diff --git a/morituri/test/bloc.cue b/morituri/test/bloc.cue
new file mode 100644
index 0000000..09fcf0a
--- /dev/null
+++ b/morituri/test/bloc.cue
@@ -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
diff --git a/morituri/test/test_image_toc.py b/morituri/test/test_image_toc.py
index 3323a46..34d52d6 100644
--- a/morituri/test/test_image_toc.py
+++ b/morituri/test/test_image_toc.py
@@ -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):
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list