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

def assertIs(self, expr1, expr2, msg=None):

    if (expr1 is not expr2):
        standardMsg = ('%r    is    not    %r' % (expr1, expr2))
        self.fail(self._formatMessage(msg, standardMsg))
