def setUp(self, mock_task): """Create a fake worker object""" mock_task.create.return_value = None task_handler = task.Task() max_requests = 1 max_age = 3600 self.fake_worker = worker.Worker(task_handler, max_requests, max_age)
def setUp(self): self.task_handler = task.Task() self.fake_manager = manager.Manager(self.task_handler)
def setUp(self): """Create a fake Task object""" self.task = task.Task() pass