def METHOD_NAME(self, task_id):
    uri = "/api/tasks/%d/wait" % int(task_id)
    resp = self.get(uri)
    self.check_equal(resp.status_code, 200)
    self.check_equal(resp.json()['State'], TASK_SUCCEEDED)