def test_all(self): TaskQueue.push('http://www.google.com/') TaskQueue.push('http://www.globo.com/') task_queue = TaskQueue() def p(url): pass task_queue.bind(p) task_queue.run(2)
def start(): task_queue = TaskQueue() task_queue.bind(process) task_queue.run()
def test_push(self): TaskQueue.push('http://www.google.com/') TaskQueue.push('http://www.globo.com/') TaskQueue.push('http://www.uol.com.br/')