MCPcopy Index your code
hub / github.com/RustPython/RustPython / _format_mock_failure_message

Method _format_mock_failure_message

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

Source from the content-addressed store, hash-verified

868
869
870 def _format_mock_failure_message(self, args, kwargs, action='call'):
871 message = 'expected %s not found.\nExpected: %s\n Actual: %s'
872 expected_string = self._format_mock_call_signature(args, kwargs)
873 call_args = self.call_args
874 actual_string = self._format_mock_call_signature(*call_args)
875 return message % (action, expected_string, actual_string)
876
877
878 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