MCPcopy Create free account
hub / github.com/aws/aws-cli / setUp

Method setUp

tests/unit/botocore/docs/test_example.py:93–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91
92class TestTraverseAndDocumentShape(BaseExampleDocumenterTest):
93 def setUp(self):
94 super().setUp()
95 self.add_shape_to_params('Foo', 'String', 'This describes foo.')
96 self.event_emitter = mock.Mock()
97 self.request_example = RequestExampleDocumenter(
98 service_id='myservice',
99 operation_name='SampleOperation',
100 event_emitter=self.event_emitter,
101 )
102 self.response_example = ResponseExampleDocumenter(
103 service_id='myservice',
104 operation_name='SampleOperation',
105 event_emitter=self.event_emitter,
106 )
107
108 def test_events_emitted_response_example(self):
109 self.response_example.traverse_and_document_shape(

Callers

nothing calls this directly

Calls 4

add_shape_to_paramsMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected