Esempio n. 1
0
 def testFileLogger(self):
     # Same as previous.
     try:
         tftpy.addHandler(tftpy.create_rotatingfilehandler('/tmp/log'))
         self.assertTrue( True )
     except:
         self.assertTrue( False )
Esempio n. 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 )
Esempio n. 3
0
 def testFileLogger(self):
     try:
         tftpy.addHandler(tftpy.create_rotatingfilehandler('/tmp/log'))
     except:
         self.fail('testFileLogger() unexpectedly raised an exception')
Esempio n. 4
0
 def testStreamLogger(self):
     try:
         tftpy.addHandler(tftpy.create_streamhandler())
     except:
         self.fail('testStreamLogger() unexpectedly raised an exception')