MCPcopy
hub / github.com/aws/aws-cli / test_repr

Method test_repr

tests/unit/s3transfer/test_utils.py:108–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 self.assertEqual(func_container(), (('foo',), {'bar': 'baz'}))
107
108 def test_repr(self):
109 func_container = FunctionContainer(
110 self.get_args_kwargs, 'foo', bar='baz'
111 )
112 self.assertEqual(
113 str(func_container),
114 'Function: {} with args {} and kwargs {}'.format(
115 self.get_args_kwargs, ('foo',), {'bar': 'baz'}
116 ),
117 )
118
119
120class TestCountCallbackInvoker(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

FunctionContainerClass · 0.90
formatMethod · 0.80

Tested by

no test coverage detected