'Included for symmetry with assertIsInstance.'

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

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