def METHOD_NAME(self):
    with patch("api.job.views.cancel_task"):
        self.client.put(path=reverse(viewname="v1:tasklog-cancel", kwargs={"task_pk": self.task.pk}))
    log: AuditLog = AuditLog.objects.order_by("operation_time").last()
    self.check_log(
        log=log,
        operation_name="Task cancelled",
        operation_result=AuditLogOperationResult.SUCCESS,
        user=self.test_user,
        obj=self.adcm,
    )