(self)
| 906 | self.assertEqual(shape.serialization['name'], 'other') |
| 907 | |
| 908 | def test_shape_overrides(self): |
| 909 | shape_map = { |
| 910 | "StringType": { |
| 911 | "type": "string", |
| 912 | "documentation": "Original documentation", |
| 913 | } |
| 914 | } |
| 915 | resolver = model.ShapeResolver(shape_map) |
| 916 | shape = resolver.get_shape_by_name('StringType') |
| 917 | self.assertEqual(shape.documentation, 'Original documentation') |
| 918 | |
| 919 | shape = resolver.resolve_shape_ref( |
| 920 | {'shape': 'StringType', 'documentation': 'override'} |
| 921 | ) |
| 922 | self.assertEqual(shape.documentation, 'override') |
| 923 | |
| 924 | def test_shape_type_structure(self): |
| 925 | shapes = { |
nothing calls this directly
no test coverage detected