Files
whipper-gui/morituri/test/test_image_table.py
Thomas Vander Stichele 4982f588c7 * morituri/image/image.py:
* morituri/image/table.py:
	* morituri/test/test_image_image.py:
	* morituri/test/test_image_table.py:
	  Rename toc.TOC to table.Table
2009-04-27 22:15:51 +00:00

43 lines
1.4 KiB
Python

# -*- Mode: Python; test-case-name: morituri.test.test_image_table -*-
# vi:si:et:sw=4:sts=4:ts=4
import os
import unittest
from morituri.image import table
def h(i):
return "0x%08x" % i
class LadyhawkeTestCase(unittest.TestCase):
# Ladyhawke - Ladyhawke - 0602517818866
# contains 12 audio tracks and one data track
# CDDB has been verified against freedb:
# http://www.freedb.org/freedb/misc/c60af50d
# http://www.freedb.org/freedb/jazz/c60af50d
# AccurateRip URL has been verified against EAC's, using wireshark
def setUp(self):
self.table = table.Table([
table.Track( 1, 0, 15536),
table.Track( 2, 15537, 31690),
table.Track( 3, 31691, 50865),
table.Track( 4, 50866, 66465),
table.Track( 5, 66466, 81201),
table.Track( 6, 81202, 99408),
table.Track( 7, 99409, 115919),
table.Track( 8, 115920, 133092),
table.Track( 9, 133093, 149846),
table.Track(10, 149847, 161559),
table.Track(11, 161560, 177681),
table.Track(12, 177682, 195705),
table.Track(13, 207106, 210384, audio=False),
])
def testCDDB(self):
self.assertEquals(self.table.getCDDBDiscId(), "c60af50d")
def testAccurateRip(self):
self.assertEquals(self.table.getAccurateRipIds(), (
"0013bd5a", "00b8d489"))