def assertIsNone(self, obj, msg=None):
if obj is not None:<EOL><INDENT>standardMsg = '<STR_LIT>' % (safe_repr(obj),)<EOL>self.fail(self._formatMessage(msg, standardMsg))<EOL><DEDENT>
Same as self.assertTrue(obj is None), with a nicer default message.