Fail if the two objects are equal as determined by the '!=' operator.
(self, first, second, msg=None)
| 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): |