def test_replace_service_description_exception(): with pytest.raises(ValueError, match="1 replaceable elements"): ps.replace_service_description("%s", [], "")
def test_replace_service_description(service_description, matches, result): assert ps.replace_service_description(service_description, matches, "") == result