def METHOD_NAME(self):
    """Test handling of passing in the request uri."""
    resp, content = fake_response(
        b"{",
        {"status": "400", "content-type": "application/json"},
        reason="Failure",
    )
    error = HttpError(resp, content, uri="http://example.org")
    self.assertEqual(
        str(error),
        '<HttpError 400 when requesting http://example.org returned "Failure". Details: "{">',
    )