MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / assertNotEqual

Method assertNotEqual

tests/helpers/test_case.py:25–36  ·  view source on GitHub ↗
(self, first, second, msg=None)

Source from the content-addressed store, hash-verified

23 raise e
24
25 def assertNotEqual(self, first, second, msg=None) -> None:
26 try:
27 super().assertNotEqual(first, second, msg=msg)
28 except ValueError as e:
29 try:
30 self.assertEqual(first, second)
31 except AssertionError:
32 pass
33 else:
34 msg = self._formatMessage(msg, '%s == %s' % (safe_repr(first),
35 safe_repr(second)))
36 raise self.failureException(msg)

Calls 1

assertEqualMethod · 0.95

Tested by

no test coverage detected