(self)
| 91 | self.assert_rendered_docs_contain('{ ... recursive ... }') |
| 92 | |
| 93 | def test_handle_recursive_output(self): |
| 94 | shape_map = { |
| 95 | 'RecursiveStruct': { |
| 96 | 'type': 'structure', |
| 97 | 'members': { |
| 98 | 'A': {'shape': 'NonRecursive'}, |
| 99 | 'B': {'shape': 'RecursiveStruct'}, |
| 100 | }, |
| 101 | }, |
| 102 | 'NonRecursive': {'type': 'string'}, |
| 103 | } |
| 104 | shape = StructureShape( |
| 105 | 'RecursiveStruct', |
| 106 | shape_map['RecursiveStruct'], |
| 107 | ShapeResolver(shape_map), |
| 108 | ) |
| 109 | |
| 110 | operation_model = mock.Mock() |
| 111 | operation_model.output_shape = shape |
| 112 | self.help_command.obj = operation_model |
| 113 | self.operation_handler.doc_output(self.help_command, 'event-name') |
| 114 | self.assert_rendered_docs_contain('( ... recursive ... )') |
| 115 | |
| 116 | def test_handle_empty_nested_struct(self): |
| 117 | shape_map = { |
nothing calls this directly
no test coverage detected