def METHOD_NAME(mock):
    httpretty.register_uri(httpretty.GET, "https://1.1.1.1/", status=200)
    httpretty.register_uri(httpretty.GET, "https://2.2.2.2/", status=200)
    httpretty.register_uri(httpretty.GET, "http://127.0.0.1/", status=200)
    # This request should go through
    url_validator("https://1.1.1.1/")
    # This request should not go through
    with pytest.raises(ValidationError) as exec_info:
        url_validator("google.com")
    assert exec_info.value.code == "invalid_url"
    with pytest.raises(ValidationError) as exec_info:
        url_validator("127.0.0.1")
    assert exec_info.value.code == "invalid_url"