'Same as self.assertTrue(obj is None), with a nicer default message.'

def assertIsNone(self, obj, msg=None):

    if (obj is not None):
        standardMsg = ('%s    is    not    None' % (safe_repr(obj),))
        self.fail(self._formatMessage(msg, standardMsg))
    return
