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

Method test_structure_within_map

tests/unit/test_argprocess.py:873–889  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

871 self.assertEqual(generated_example, '')
872
873 def test_structure_within_map(self):
874 argument = self.create_argument(
875 {
876 'A': {
877 'type': 'map',
878 'key': {'type': 'string'},
879 'value': {
880 'type': 'structure',
881 'members': {
882 'B': {'type': 'string'},
883 },
884 },
885 },
886 }
887 )
888 generated_example = self.get_generated_example_for(argument)
889 self.assertEqual('A={KeyName1={B=string},KeyName2={B=string}}', generated_example)
890
891
892class TestUnpackJSONParams(BaseArgProcessTest):

Callers

nothing calls this directly

Calls 2

create_argumentMethod · 0.45

Tested by

no test coverage detected