MCPcopy Index your code
hub / github.com/aws/aws-cli / setUp

Method setUp

tests/unit/test_arguments.py:33–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31
32class TestCLIArgument(unittest.TestCase):
33 def setUp(self):
34 self.service_name = 'baz'
35 self.service_model = ServiceModel(
36 {
37 'metadata': {
38 'endpointPrefix': 'bad',
39 },
40 'operations': {
41 'SampleOperation': {
42 'name': 'SampleOperation',
43 'input': {'shape': 'Input'},
44 }
45 },
46 'shapes': {
47 'StringShape': {'type': 'string'},
48 'Input': {
49 'type': 'structure',
50 'members': {'Foo': {'shape': 'StringShape'}},
51 },
52 },
53 },
54 self.service_name,
55 )
56 self.operation_model = self.service_model.operation_model(
57 'SampleOperation'
58 )
59 self.argument_model = self.operation_model.input_shape.members['Foo']
60 self.event_emitter = mock.Mock()
61
62 def create_argument(self):
63 return arguments.CLIArgument(

Callers

nothing calls this directly

Calls 2

ServiceModelClass · 0.90
operation_modelMethod · 0.80

Tested by

no test coverage detected