Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
Signed-off-by: ABCbum <[email protected]>
  • Loading branch information
ABCbum committed Jan 15, 2020
1 parent 49c0b39 commit c607437
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions whipper/test/test_image_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ class LadyhawkeTestCase(tcommon.TestCase):
# AccurateRip URL has been verified against EAC's, using wireshark

def setUp(self):
# setup to test if MusicBrainz submit URL is hardcoded to use https
self.config = config.Config()
self.config._parser.add_section('musicbrainz')
self.config._parser.set('musicbrainz', 'server',
'musicbrainz.org:80')
self.config.write()

self.table = table.Table()

for i in range(12):
Expand All @@ -56,10 +49,6 @@ def setUp(self):
self.assertTrue(self.table.hasTOC())
self.assertEqual(self.table.tracks[0].getPregap(), 0)

def tearDown(self):
self.config._parser.remove_section('musicbrainz')
print("Removed ", self.config._parser.sections())

def testCDDB(self):
self.assertEqual(self.table.getCDDBDiscId(), "c60af50d")

Expand All @@ -70,6 +59,12 @@ def testMusicBrainz(self):
# 177832&tracks=12&id=KnpGsLhvH.lPrNc1PBL21lb9Bg4-
# however, not (yet) in MusicBrainz database

# setup to test if MusicBrainz submit URL is hardcoded to use https
self.config = config.Config()
self.config._parser.add_section('musicbrainz')
self.config._parser.set('musicbrainz', 'server',
'musicbrainz.org:80')
self.config.write()
self.assertEqual(self.table.getMusicBrainzSubmitURL(),
"http://musicbrainz.org:80/cdtoc/attach?toc=1+12+1958"
"56+150+15687+31841+51016+66616+81352+99559+116070+13"
Expand All @@ -78,6 +73,9 @@ def testMusicBrainz(self):
self.assertEqual(self.table.getMusicBrainzDiscId(),
"KnpGsLhvH.lPrNc1PBL21lb9Bg4-")

self.config._parser.remove_section('musicbrainz')
print("Removed ", self.config._parser.sections())

def testAccurateRip(self):
self.assertEqual(self.table.accuraterip_ids(), (
"0013bd5a", "00b8d489"))
Expand Down

0 comments on commit c607437

Please sign in to comment.