MCPcopy Index your code
hub / github.com/python/cpython / assertEqual

Method assertEqual

Lib/unittest/case.py:920–925  ·  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

918 raise self.failureException(msg)
919
920 def assertEqual(self, first, second, msg=None):
921 """Fail if the two objects are unequal as determined by the '=='
922 operator.
923 """
924 assertion_func = self._getAssertEqualityFunc(first, second)
925 assertion_func(first, second, msg=msg)
926
927 def assertNotEqual(self, first, second, msg=None):
928 """Fail if the two objects are equal as determined by the '!='

Calls 1