Esempio n. 1
0
def _validate_wildcard_uri(node, value):
    """Raise if wildcards are within the domain of the uri."""
    for val in value:
        if not wildcard_uri_is_valid(val):
            raise colander.Invalid(
                node, """Wildcards (_ and *) are not permitted within the
                domain of wildcard_uri""")
Esempio n. 2
0
def test_identifies_wildcard_uri_is_valid(wildcard_uri, expected):
    assert query.wildcard_uri_is_valid(wildcard_uri) == expected