Lines Matching refs:tasks
346 def _check_special_tasks(self, tasks, task_types): argument
347 self.assertEquals(len(tasks), len(task_types))
348 for task, (task_type, queue_entry_id) in zip(tasks, task_types):
358 tasks = self._test_pre_job_tasks_helper()
360 self._check_special_tasks(tasks, [(models.SpecialTask.Task.RESET, 1)])
368 tasks = self._test_pre_job_tasks_helper()
370 self._check_special_tasks(tasks, [(models.SpecialTask.Task.RESET, 1)])
376 tasks = self._test_pre_job_tasks_helper()
378 self._check_special_tasks(tasks, [(models.SpecialTask.Task.RESET, 1)])
386 tasks = self._test_pre_job_tasks_helper()
388 self._check_special_tasks(tasks, [(models.SpecialTask.Task.RESET, 1)])
397 tasks = self._test_pre_job_tasks_helper()
399 self.assertEquals(tasks, [])
407 tasks = self._test_pre_job_tasks_helper(
410 self._check_special_tasks(tasks, [(models.SpecialTask.Task.VERIFY, 1)])
418 tasks = self._test_pre_job_tasks_helper(
421 self._check_special_tasks(tasks, [(models.SpecialTask.Task.VERIFY, 1)])
429 tasks = self._test_pre_job_tasks_helper()
431 self._check_special_tasks(tasks, [
441 tasks = self._test_pre_job_tasks_helper()
444 self._check_special_tasks(tasks, task_types)