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

Method test_simple_unexpected_body

tests/test_mocks.py:90–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

88 pass
89
90 def test_simple_unexpected_body(self):
91 requestBuilder = RequestMockBuilder(
92 {"zoo.animals.insert": (None, '{"data": {"foo": "bar"}}', None)}
93 )
94 zoo = build(
95 "zoo",
96 "v1",
97 http=self.zoo_http,
98 requestBuilder=requestBuilder,
99 static_discovery=False,
100 )
101
102 try:
103 zoo.animals().insert(body="{}").execute()
104 self.fail("UnexpectedBodyError should have been raised")
105 except UnexpectedBodyError:
106 pass
107
108 def test_simple_expected_body(self):
109 requestBuilder = RequestMockBuilder(

Callers

nothing calls this directly

Calls 3

RequestMockBuilderClass · 0.90
buildFunction · 0.90
executeMethod · 0.45

Tested by

no test coverage detected