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

Method test_no_body

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

Source from the content-addressed store, hash-verified

49 self.model = ProtocolBufferModel(MockProtocolBuffer)
50
51 def test_no_body(self):
52 headers = {}
53 path_params = {}
54 query_params = {}
55 body = None
56
57 headers, params, query, body = self.model.request(
58 headers, path_params, query_params, body
59 )
60
61 self.assertEqual(headers["accept"], "application/x-protobuf")
62 self.assertTrue("content-type" not in headers)
63 self.assertNotEqual(query, "")
64 self.assertEqual(body, None)
65
66 def test_body(self):
67 headers = {}

Callers

nothing calls this directly

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected