示例#1
0
 def testLoggingToLogging(self):
     testlog.log_to_logging(logging)
     testlog.assertTrue(4, 3)
示例#2
0
 def testAllFunctions(self):
     testlog.assertTrue(1 == 2)
     answer = u'FAILED:  in testlogger_tests.py line '+str(inspect.getlineno(sys._getframe()) -1)+': testlog.assertTrue(1 == 2)\n'
     self.assertEqual(self.log.getvalue()[28:],  answer)