示例#1
0
    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)
示例#2
0
 def setUp(self):
     self.task_handler = task.Task()
     self.fake_manager = manager.Manager(self.task_handler)
示例#3
0
 def setUp(self):
     """Create a fake Task object"""
     self.task = task.Task()
     pass