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

Method _format_mock_failure_message

Lib/unittest/mock.py:871–876  ·  view source on GitHub ↗
(self, args, kwargs, action='call')

Source from the content-addressed store, hash-verified

869
870
871 def _format_mock_failure_message(self, args, kwargs, action='call'):
872 message = 'expected %s not found.\nExpected: %s\n Actual: %s'
873 expected_string = self._format_mock_call_signature(args, kwargs)
874 call_args = self.call_args
875 actual_string = self._format_mock_call_signature(*call_args)
876 return message % (action, expected_string, actual_string)
877
878
879 def _get_call_signature_from_name(self, name):

Callers 2

_error_messageMethod · 0.95
_error_messageMethod · 0.80

Calls 1

Tested by

no test coverage detected