def verifyException(self, e): message = log.getExceptionMessage(e) self.failUnless("func1()" in message) self.failUnless("test_log.py" in message) self.failUnless("TypeError" in message)