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

Method test_good_response

tests/test_protobuf_model.py:81–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 self.assertEqual(body, "data")
80
81 def test_good_response(self):
82 resp = httplib2.Response({"status": "200"})
83 resp.reason = "OK"
84 content = "data"
85
86 content = self.model.response(resp, content)
87 self.assertEqual(content, MockProtocolBuffer("data"))
88
89 def test_no_content_response(self):
90 resp = httplib2.Response({"status": "204"})

Callers

nothing calls this directly

Calls 2

MockProtocolBufferClass · 0.85
responseMethod · 0.45

Tested by

no test coverage detected