コード例 #1
0
ファイル: test_musicdata.py プロジェクト: wschott/apit
 def test_only_track_number(self):
     """
     Test the correct extraction of the disc and track number for a given
     filename with only a track number and no disc number.
     """
     self.assertEqual(
         extract_disc_and_track_number('14 song title.m4a'),
         (1, 14)
     )
コード例 #2
0
ファイル: test_musicdata.py プロジェクト: wschott/apit
 def test_disc_track_number(self):
     """
     Test the correct extraction of the disc and track number for a given
     filename with both numbers.
     """
     self.assertEqual(
         extract_disc_and_track_number('2-14 song title.m4a'),
         (2, 14)
     )