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