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

Method assertEqual

Lib/unittest/case.py:925–930  ·  view source on GitHub ↗

Fail if the two objects are unequal as determined by the '==' operator.

(self, first, second, msg=None)

Source from the content-addressed store, hash-verified

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 '=='
927 operator.
928 """
929 assertion_func = self._getAssertEqualityFunc(first, second)
930 assertion_func(first, second, msg=msg)
931
932 def assertNotEqual(self, first, second, msg=None):
933 """Fail if the two objects are equal as determined by the '!='

Calls 1