MCPcopy Create free account
hub / github.com/python/cpython / test_two_args_call

Method test_two_args_call

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

Source from the content-addressed store, hash-verified

344
345
346 def test_two_args_call(self):
347 args = _Call(((1, 2), {'a': 3}), two=True)
348 self.assertEqual(len(args), 2)
349 self.assertEqual(args[0], (1, 2))
350 self.assertEqual(args[1], {'a': 3})
351
352 other_args = _Call(((1, 2), {'a': 3}))
353 self.assertEqual(args, other_args)
354
355 def test_call_with_name(self):
356 self.assertEqual(_Call((), 'foo')[0], 'foo')

Callers

nothing calls this directly

Calls 2

_CallClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected