def METHOD_NAME(patched_addr_info):
    httpretty.register_uri(httpretty.GET, "https://google.com", status=200)
    httpretty.register_uri(httpretty.GET, "http://1.1.1.1", status=200)
    # The httpretty stub implemenation of socket.getaddrinfo is incorrect and doesn't
    # return an IP causing advocate to fail, instead we patch to fix this.
    # This request should not go through
    with pytest.raises(ValidationError, match="Invalid URL") as exec_info:
        url_validator("https://www.google.com/")
    assert exec_info.value.code == "invalid_url"
    # This request should still go through
    url_validator("https://www.otherdomain.com")