Ejemplo n.º 1
0
def test_match_domain(a, b, result):
    if '*' in a:
        rule = MaskDomain(a)
    else:
        rule = Domain(a)
    assert rule.match_domain(b) is result
Ejemplo n.º 2
0
def test_match_domain(a: Any, b: Any, result: Any) -> None:
    if "*" in a:
        rule = MaskDomain(a)
    else:
        rule = Domain(a)
    assert rule.match_domain(b) is result
Ejemplo n.º 3
0
def test_match_domain(a, b, result):
    if '*' in a:
        rule = MaskDomain(a)
    else:
        rule = Domain(a)
    assert rule.match_domain(b) is result