MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / fake_response

Function fake_response

tests/test_errors.py:68–71  ·  view source on GitHub ↗
(data, headers, reason="Ok")

Source from the content-addressed store, hash-verified

66
67
68def fake_response(data, headers, reason="Ok"):
69 response = httplib2.Response(headers)
70 response.reason = reason
71 return response, data
72
73
74class Error(unittest.TestCase):

Callers 7

test_json_bodyMethod · 0.85
test_bad_json_bodyMethod · 0.85
test_with_uriMethod · 0.85
test_non_jsonMethod · 0.85
test_missing_reasonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…