def METHOD_NAME(self, pyramid_request, raw, expected_text):
    response = Response()
    response.raw = raw
    exception = GoogleDriveServiceError(
        "message", 419, HTTPError(response=response)
    )
    result = google_drive_exceptions(exception, pyramid_request)
    assert result == {
        "exception": "GoogleDriveServiceError",
        "message": "message",
        "upstream": {
            "content_type": None,
            "status_code": None,
            "text": expected_text,
        },
    }
    json.dumps(result)  # Check we are serialisable