def test_audio_track(self): data = json.loads(read("clean_tracks.json"))["tracks"][1] track = mkvstrip.Track(data) self.assertEqual(str(track), "Track #2: eng - AC-3")
def test_subtitle_track(self): data = json.loads(read("clean_tracks.json"))["tracks"][2] track = mkvstrip.Track(data) self.assertEqual(str(track), "Track #5: eng - SubRip/SRT")
def test_video_track(self): data = json.loads(read("clean_tracks.json"))["tracks"][0] track = mkvstrip.Track(data) self.assertEqual(str(track), "Track #0: und - MPEG-4p10/AVC/h.264")