log.debug('this= %r', self.this)
log.debug('that= %r', self.that)
self.assertEqual(3.14, pi)
if __name__ == '__main__':
    logging.basicConfig(stream=sys.stderr)
logging.getLogger('SomeTest.testSomething').setLevel(logging.DEBUG)
unittest.main()
Outputting data from unit test in python