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

Method _error_message

Lib/unittest/mock.py:979–981  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

977 raise AssertionError(error_message)
978
979 def _error_message():
980 msg = self._format_mock_failure_message(args, kwargs)
981 return msg
982 expected = self._call_matcher(_Call((args, kwargs), two=True))
983 actual = self._call_matcher(self.call_args)
984 if actual != expected:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected