def test_parse_taglist(): parse_taglist(b"") stations = parse_taglist(b"""\ uri=http://foo.bar artist=foo artist=bar ~listenerpeak=42 """) assert len(stations) == 1 assert stations[0]["~#listenerpeak"] == 42 assert stations[0].list("artist") == ["foo", "bar"]
def test_parse_taglist(): parse_taglist(b"") stations = parse_taglist(b"""\ uri=http://foo.bar artist=foo artist=bar ~listenerpeak=42 """) assert len(stations) == 1 assert stations[0]["~#listenerpeak"] == 42 assert stations[0].list("artist") == ["foo", "bar"]