MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / assertEqual

Method assertEqual

tools/python-3.11.9-amd64/Lib/unittest/case.py:868–873  ·  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

866 raise self.failureException(msg)
867
868 def assertEqual(self, first, second, msg=None):
869 """Fail if the two objects are unequal as determined by the '=='
870 operator.
871 """
872 assertion_func = self._getAssertEqualityFunc(first, second)
873 assertion_func(first, second, msg=msg)
874
875 def assertNotEqual(self, first, second, msg=None):
876 """Fail if the two objects are equal as determined by the '!='

Callers 15

assertEqual2Method · 0.80
checkParamMethod · 0.80
checkInvalidParamMethod · 0.80
test_keysMethod · 0.80
test_configure_orientMethod · 0.80
checkMethod · 0.80

Calls 1

Tested by 15

assertEqual2Method · 0.64
checkParamMethod · 0.64
checkInvalidParamMethod · 0.64
test_keysMethod · 0.64
test_configure_orientMethod · 0.64
checkMethod · 0.64