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

Method test_error_shape_metadata

tests/unit/botocore/test_model.py:995–1013  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

993 self.assertEqual(member.metadata['sensitive'], True)
994
995 def test_error_shape_metadata(self):
996 shapes = {
997 'ResourceNotFoundException': {
998 'type': 'structure',
999 'members': {
1000 'message': {
1001 'shape': 'ErrorMessage',
1002 }
1003 },
1004 'exception': True,
1005 'retryable': {'throttling': True},
1006 }
1007 }
1008 resolver = model.ShapeResolver(shapes)
1009 shape = resolver.get_shape_by_name('ResourceNotFoundException')
1010 self.assertEqual(
1011 shape.metadata,
1012 {'exception': True, 'retryable': {'throttling': True}},
1013 )
1014
1015 def test_shape_list(self):
1016 shapes = {

Callers

nothing calls this directly

Calls 1

get_shape_by_nameMethod · 0.95

Tested by

no test coverage detected