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