'Same as self.assertTrue(isinstance(obj, cls)), with a nicer
default message.'

def assertIsInstance(self, obj, cls, msg=None):

    if (not isinstance(obj, cls)):
        standardMsg = ('%s    is    not    an    instance    of    %r' % (safe_repr(obj), cls))
        self.fail(self._formatMessage(msg, standardMsg))
