Add test case when data track is first track

Using existing TOCs, create a new test case to verify discid generated
when data track is not at the end of the disc track-list.

Quality of test is not verified.

Signed-off-by: ABCbum <kimlong221002@gmail.com>
This commit is contained in:
ABCbum
2019-12-22 11:32:58 +07:00
committed by JoeLametta
parent a113404c33
commit 97ffd0fe4d

View File

@@ -271,6 +271,13 @@ class CapitalMergeTestCase(common.TestCase):
self.assertEqual(self.table.getFrameLength(), 173530)
self.assertEqual(self.table.duration(), 2313733)
def testMusicBrainzDataTrackFirst(self):
self.table = copy.deepcopy(self.toc2.table)
self.table.merge(self.toc1.table)
print(self.table.tracks)
self.assertEqual(self.table.getMusicBrainzDiscId(),
"QTYYFFAgNK4Np2EHjfPTBavqtw8-")
class UnicodeTestCase(common.TestCase, common.UnicodeTestMixin):