def METHOD_NAME(self, name, other_ready_tasks):
    # This method completes a single task from the specified set of ready
    # tasks
    ready_tasks = self.workflow.get_tasks(TaskState.READY)
    all_tasks = sorted([name] + other_ready_tasks)
    self.assertEqual(all_tasks, sorted([t.task_spec.name for t in ready_tasks]))
    task = list([t for t in ready_tasks if t.task_spec.name == name])[0]
    task.run()