def test_remote_url_false_forms_correct_url(self): t = track_from_song_data(self.data, remote_url=False) self.assertEqual(t.uri, "leftasrain:track:a - b.1")
def test_cover_url(self): t = track_from_song_data(self.data) self.assertEqual(len(t.album.images), 1) self.assertIn(COVER_URL.format(**self.data), t.album.images)
def test_remote_url_true_forms_correct_url(self): t = track_from_song_data(self.data, remote_url=True) self.assertEqual(t.uri, SONG_URL + "test_uri.mp3")