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

Method _baseAssertEqual

Lib/unittest/case.py:918–923  ·  view source on GitHub ↗

The default assertEqual implementation, not type specific.

(self, first, second, msg=None)

Source from the content-addressed store, hash-verified

916 return self._baseAssertEqual
917
918 def _baseAssertEqual(self, first, second, msg=None):
919 """The default assertEqual implementation, not type specific."""
920 if not first == second:
921 standardMsg = '%s != %s' % _common_shorten_repr(first, second)
922 msg = self._formatMessage(msg, standardMsg)
923 raise self.failureException(msg)
924
925 def assertEqual(self, first, second, msg=None):
926 """Fail if the two objects are unequal as determined by the '=='

Callers 1

assertMultiLineEqualMethod · 0.95

Calls 2

_formatMessageMethod · 0.95
_common_shorten_reprFunction · 0.85

Tested by

no test coverage detected