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