(self)
| 68 | self.assertEqual(indent, dedent, message % (indent, dedent)) |
| 69 | |
| 70 | def test_handle_recursive_input(self): |
| 71 | shape_map = { |
| 72 | 'RecursiveStruct': { |
| 73 | 'type': 'structure', |
| 74 | 'members': { |
| 75 | 'A': {'shape': 'NonRecursive'}, |
| 76 | 'B': {'shape': 'RecursiveStruct'}, |
| 77 | }, |
| 78 | }, |
| 79 | 'NonRecursive': {'type': 'string'}, |
| 80 | } |
| 81 | shape = StructureShape( |
| 82 | 'RecursiveStruct', |
| 83 | shape_map['RecursiveStruct'], |
| 84 | ShapeResolver(shape_map), |
| 85 | ) |
| 86 | |
| 87 | self.arg_table['arg-name'] = mock.Mock(argument_model=shape) |
| 88 | self.operation_handler.doc_option_example( |
| 89 | 'arg-name', self.help_command, 'process-cli-arg.foo.bar' |
| 90 | ) |
| 91 | self.assert_rendered_docs_contain('{ ... recursive ... }') |
| 92 | |
| 93 | def test_handle_recursive_output(self): |
| 94 | shape_map = { |
nothing calls this directly
no test coverage detected