def test_parse_url_spotify(self):
        res = parse_uri("spotify:album:Hksdhfaif23ffushef9823")
        self.assertEqual(res['type'], "album")
        self.assertEqual(res['id'], "Hksdhfaif23ffushef9823")

        res = parse_uri("spotify:playlist:Hksdhfaif23ffushef9823")
        self.assertEqual(res['type'], "playlist")
        self.assertEqual(res['id'], "Hksdhfaif23ffushef9823")

        res = parse_uri("spotify:track:Hksdhfaif23ffushef9823")
        self.assertEqual(res['type'], "track")
        self.assertEqual(res['id'], "Hksdhfaif23ffushef9823")
 def test_parse_url_embed_domain(self):
     res = parse_uri(
         "https://embed.spotify.com/?uri=spotify:track:Hksdhfaif23ffushef9823"
     )
     self.assertEqual(res['type'], "track")
     self.assertEqual(res['id'], "Hksdhfaif23ffushef9823")
 def test_parse_url_play_domain(self):
     res = parse_uri(
         "https://play.spotify.com/track/Hksdhfaif23ffushef9823")
     self.assertEqual(res['type'], "track")
     self.assertEqual(res['id'], "Hksdhfaif23ffushef9823")