(self)
| 31 | |
| 32 | class 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( |
nothing calls this directly
no test coverage detected