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

Method test_simple_response

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

Source from the content-addressed store, hash-verified

56 self.assertEqual({}, activity)
57
58 def test_simple_response(self):
59 requestBuilder = RequestMockBuilder(
60 {"plus.activities.get": (None, '{"foo": "bar"}')}
61 )
62 plus = build(
63 "plus",
64 "v1",
65 http=self.http,
66 requestBuilder=requestBuilder,
67 static_discovery=False,
68 )
69
70 activity = plus.activities().get(activityId="tag:blah").execute()
71 self.assertEqual({"foo": "bar"}, activity)
72
73 def test_unexpected_call(self):
74 requestBuilder = RequestMockBuilder({}, check_unexpected=True)

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