Included for symmetry with assertIsNone.
(self, obj, msg=None)
| 1326 | self.fail(self._formatMessage(msg, standardMsg)) |
| 1327 | |
| 1328 | def assertIsNotNone(self, obj, msg=None): |
| 1329 | """Included for symmetry with assertIsNone.""" |
| 1330 | if obj is None: |
| 1331 | standardMsg = 'unexpectedly None' |
| 1332 | self.fail(self._formatMessage(msg, standardMsg)) |
| 1333 | |
| 1334 | def assertIsInstance(self, obj, cls, msg=None): |
| 1335 | """Same as self.assertTrue(isinstance(obj, cls)), with a nicer |