def test_from_artist(self): a = mock_artist("artist", 1) l = Link.from_artist(a) self.assertEqual(str(l), "link:artist:artist")
def test_from_artist(self): l = Link.from_artist(self.artist) self.assertEqual(str(l), "spotify:artist:test_artist")