MCPcopy Index your code
hub / github.com/python/cpython / test_call_with_args

Method test_call_with_args

Lib/test/test_unittest/testmock/testhelpers.py:159–167  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157
158
159 def test_call_with_args(self):
160 args = _Call(((1, 2, 3), {}))
161
162 self.assertEqual(args, ((1, 2, 3),))
163 self.assertEqual(args, ('foo', (1, 2, 3)))
164 self.assertEqual(args, ('foo', (1, 2, 3), {}))
165 self.assertEqual(args, ((1, 2, 3), {}))
166 self.assertEqual(args.args, (1, 2, 3))
167 self.assertEqual(args.kwargs, {})
168
169
170 def test_named_call_with_args(self):

Callers

nothing calls this directly

Calls 2

_CallClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected