def test_6to4_failure(ipv6): with pytest.raises(AssertionError): ipv6_to_ipv4(ipv6)
def test_6to4(ipv4, ipv6): assert ipv6_to_ipv4(ip_address(ipv6)) == ip_address(ipv4)