示例#1
0
 def testFileLogger(self):
     # Same as previous.
     try:
         tftpy.addHandler(tftpy.create_rotatingfilehandler('/tmp/log'))
         self.assertTrue( True )
     except:
         self.assertTrue( False )
示例#2
0
 def testStreamLogger(self):
     # Not sure how best to test this. Maybe configure the loggers and look
     # for any complaints.
     try:
         tftpy.addHandler(tftpy.create_streamhandler())
         self.assertTrue( True )
     except:
         self.assertTrue( False )
示例#3
0
 def testFileLogger(self):
     try:
         tftpy.addHandler(tftpy.create_rotatingfilehandler('/tmp/log'))
     except:
         self.fail('testFileLogger() unexpectedly raised an exception')
示例#4
0
 def testStreamLogger(self):
     try:
         tftpy.addHandler(tftpy.create_streamhandler())
     except:
         self.fail('testStreamLogger() unexpectedly raised an exception')