def test_normal(self): lib = SelectionLibrary([test_track]) tracks = lib.get_tracks() self.assertEqual(tracks[0].get_id(), SelectionTrack(test_track).get_id())
def test_empty_library(self): """get_tracks should return [] when the library is empty""" lib = SelectionLibrary([]) self.assertEqual(lib.get_tracks(), [])