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

Method assertNotEqual

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

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 '!='
934 operator.
935 """
936 if not first != second:
937 msg = self._formatMessage(msg, '%s == %s' % (safe_repr(first),
938 safe_repr(second)))
939 raise self.failureException(msg)
940
941 def assertAlmostEqual(self, first, second, places=None, msg=None,
942 delta=None):

Callers 15

test_in_memory_shelfMethod · 0.95
test_field_named_selfMethod · 0.95
test_1_field_compareMethod · 0.95
test_simple_compareMethod · 0.95
test_not_in_compareMethod · 0.95
test_not_tupleMethod · 0.95
test_seek0Method · 0.80

Calls 2

_formatMessageMethod · 0.95
safe_reprFunction · 0.85

Tested by 15

test_in_memory_shelfMethod · 0.76
test_field_named_selfMethod · 0.76
test_1_field_compareMethod · 0.76
test_simple_compareMethod · 0.76
test_not_in_compareMethod · 0.76
test_not_tupleMethod · 0.76
test_seek0Method · 0.64