def test_run(self): import sys sys.argv = ['tcrawler', 'testrun_cfg'] c = Crawler(*load_config_module()) c.start() self.assertTrue(c.work_queue.empty())
def test_start(self): " Test the loader start method. " c = Crawler([SimpleCommand()], {'number_threads': 2}, {}) c.start() self.assertTrue(c.work_queue.empty())