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