Ejemplo n.º 1
0
def test_cookie_domain_match(domain: bytes, value: bytes, is_match: bool):
    assert (CookieJar.domain_match(domain, value) is
            is_match), f"{domain.decode()} {value.decode()} != {is_match}"
Ejemplo n.º 2
0
def test_cookie_domain_match(domain: str, value: str, is_match: bool):
    assert (
        CookieJar.domain_match(domain, value) is is_match
    ), f"{domain} {value} != {is_match}"