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