def setUp(self): logger = Logger.log() for handler in logger.handlers: logger.removeHandler(handler) self.config = Config({ 'debug': 1, 'method': 'HEAD', 'indexof': None, 'random_agent': False, 'random_list': True, 'threads': 1000 })
def setUp(self): logger = Logger.log() for handler in logger.handlers: logger.removeHandler(handler) self.config = Config({ 'debug' : 1, 'method' : 'HEAD', 'indexof' : None, 'random_agent': False, 'random_list' : True, 'threads' : 1000 })
def tearDown(self): logger = Logger.log() for handler in logger.handlers: logger.removeHandler(handler)
def tearDown(self): StringIO().flush() logger = Logger.log() for handler in logger.handlers: logger.removeHandler(handler) del self.debug