Included for symmetry with assertIsNone.
(self, obj, msg=None)
| 1321 | self.fail(self._formatMessage(msg, standardMsg)) |
| 1322 | |
| 1323 | def assertIsNotNone(self, obj, msg=None): |
| 1324 | """Included for symmetry with assertIsNone.""" |
| 1325 | if obj is None: |
| 1326 | standardMsg = 'unexpectedly None' |
| 1327 | self.fail(self._formatMessage(msg, standardMsg)) |
| 1328 | |
| 1329 | def assertIsInstance(self, obj, cls, msg=None): |
| 1330 | """Same as self.assertTrue(isinstance(obj, cls)), with a nicer |