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

Method test_unexpected_call

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

Source from the content-addressed store, hash-verified

71 self.assertEqual({"foo": "bar"}, activity)
72
73 def test_unexpected_call(self):
74 requestBuilder = RequestMockBuilder({}, check_unexpected=True)
75
76 plus = build(
77 "plus",
78 "v1",
79 http=self.http,
80 requestBuilder=requestBuilder,
81 static_discovery=False,
82 )
83
84 try:
85 plus.activities().get(activityId="tag:blah").execute()
86 self.fail("UnexpectedMethodError should have been raised")
87 except UnexpectedMethodError:
88 pass
89
90 def test_simple_unexpected_body(self):
91 requestBuilder = RequestMockBuilder(

Callers

nothing calls this directly

Calls 4

RequestMockBuilderClass · 0.90
buildFunction · 0.90
executeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected