def test_track_inequality(self): track1 = multitrack.Track( 'blurbophone', 'fake/path1', 'S12', 'fake/path2', component='melody' ) track2 = multitrack.Track( 'kazoo', 'fake/path1', 50, 'fake/path2', raw_idx='R07' ) actual = track1 != track2 expected = True self.assertEqual(expected, actual)
def test_track_equality(self): track1 = multitrack.Track( 'blurbophone', 'fake/path1', 'S12', 'fake/path2', component='melody' ) track2 = multitrack.Track( 'blurbophone', 'fake/path1', 'S12', 'fake/path2', component='melody' ) actual = track1 == track2 expected = True self.assertEqual(expected, actual)
def test_track2(self): track = multitrack.Track( 'kazoo', 'fake/path1', 50, 'fake/path2', raw_idx='R07' ) self.assertEqual(track.instrument, ['kazoo']) self.assertEqual(track.audio_path, 'fake/path1') self.assertEqual(track.component, '') self.assertEqual(track.stem_idx, 50) self.assertEqual(track.raw_idx, 7) self.assertEqual(track.mix_path, 'fake/path2')
def test_track(self): track = multitrack.Track( 'blurbophone', 'fake/path1', 'S12', 'fake/path2', component='melody' ) self.assertEqual(track.instrument, ['blurbophone']) self.assertEqual(track.audio_path, 'fake/path1') self.assertEqual(track.component, 'melody') self.assertEqual(track.stem_idx, 12) self.assertEqual(track.raw_idx, None) self.assertEqual(track.mix_path, 'fake/path2') self.assertEqual(track.pitch_path, None)
def test_track2(self): track = multitrack.Track('kazoo', 'fake/path1', 50, 'fake/path2', pitch_path='fake/path3', raw_idx='R07') self.assertEqual(track.instrument, 'kazoo') self.assertEqual(track.file_path, 'fake/path1') self.assertEqual(track.component, '') self.assertEqual(track.stem_idx, 50) self.assertEqual(track.raw_idx, 7) self.assertEqual(track.mix_path, 'fake/path2') self.assertEqual(track._pitch_path, 'fake/path3')