Exemplo n.º 1
0
    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
 })
Exemplo n.º 3
0
 def tearDown(self):
     logger = Logger.log()
     for handler in logger.handlers:
         logger.removeHandler(handler)
Exemplo n.º 4
0
    def tearDown(self):
        logger = Logger.log()

        for handler in logger.handlers:
            logger.removeHandler(handler)
Exemplo n.º 5
0
 def tearDown(self):
     StringIO().flush()
     logger = Logger.log()
     for handler in logger.handlers:
         logger.removeHandler(handler)
     del self.debug