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

Method assertNotEqual

Lib/unittest/case.py:927–934  ·  view source on GitHub ↗

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

(self, first, second, msg=None)

Source from the content-addressed store, hash-verified

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 '!='
929 operator.
930 """
931 if not first != second:
932 msg = self._formatMessage(msg, '%s == %s' % (safe_repr(first),
933 safe_repr(second)))
934 raise self.failureException(msg)
935
936 def assertAlmostEqual(self, first, second, places=None, msg=None,
937 delta=None):

Calls 2

_formatMessageMethod · 0.95
safe_reprFunction · 0.85