"""Label Participant formatter tests.""" from switchboard_consumer.formatters.label_participant import ( format_spotify_uri ) def test_format_spotify_uri_prefixed(): result = format_spotify_uri('spotify:artist:12345') assert result == '12345' def test_format_spotify_uri_prefixless(): result = format_spotify_uri('12345') assert result == '12345' def test_format_spotify_uri_blank(): result = format_spotify_uri('') assert result is None def test_format_spotify_uri_none(): result = format_spotify_uri(None) assert result is None