def METHOD_NAME(self):
    task_id = str(self.task.id)
    asset_id = self.asset.id
    self.project.update({"max_retakes": 1})
    self.post(
        "/actions/tasks/%s/comment" % task_id,
        {"task_status_id": self.retake_status_id, "comment": "retake 1"},
    )
    self.post(
        "/actions/tasks/%s/comment" % task_id,
        {"task_status_id": self.wip_status_id, "comment": "wip"},
    )
    self.post(
        "/actions/tasks/%s/comment" % task_id,
        {"task_status_id": self.retake_status_id, "comment": "retake 2"},
        400,
    )
    self.put("/data/entities/%s" % asset_id, {"data": {"max_retakes": 2}})
    entity = self.get("/data/entities/%s" % asset_id)
    self.post(
        "/actions/tasks/%s/comment" % task_id,
        {"task_status_id": self.retake_status_id, "comment": "retake 2"},
    )
    self.post(
        "/actions/tasks/%s/comment" % task_id,
        {"task_status_id": self.wip_status_id, "comment": "wip"},
    )
    self.post(
        "/actions/tasks/%s/comment" % task_id,
        {"task_status_id": self.retake_status_id, "comment": "retake 3"},
        400,
    )