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

Method __call__

Lib/test/test_unittest/testmock/testmock.py:1043–1045  ·  view source on GitHub ↗
(self, a)

Source from the content-addressed store, hash-verified

1041 def test_setting_call(self):
1042 mock = Mock()
1043 def __call__(self, a):
1044 self._increment_mock_call(a)
1045 return self._mock_call(a)
1046
1047 type(mock).__call__ = __call__
1048 mock('one')

Callers

nothing calls this directly

Calls 2

_increment_mock_callMethod · 0.80
_mock_callMethod · 0.45

Tested by

no test coverage detected