'Just like self.assertTrue(a not in b), but with a nicer default message.'

def assertNotIn(self, member, container, msg=None):

    if (member in container):
        standardMsg = ('%s    unexpectedly    found    in    %s' % (safe_repr(member), safe_repr(container)))
        self.fail(self._formatMessage(msg, standardMsg))
