def find_task_by_name(self, tasks, name):
    for task in tasks:
      if task["name"] == name:
        return task
    return None
Find a task with given name.
dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/test/mapreduce/handlers_test.py/MapreduceHandlerTestBase.find_task_by_name