def METHOD_NAME(self):
    task_pks = TaskLog.objects.all().values_list("pk", flat=True).order_by("-pk")
    with patch("api.job.views.restart_task"):
        response: Response = self.client.put(
            path=reverse(viewname="v1:tasklog-restart", kwargs={"task_pk": task_pks[0] + 1}),
        )
    log: AuditLog = AuditLog.objects.order_by("operation_time").last()
    self.assertEqual(response.status_code, HTTP_404_NOT_FOUND)
    self.check_log(
        log=log,
        operation_name=self.task_restarted_str,
        operation_result=AuditLogOperationResult.FAIL,
        user=self.test_user,
        obj=None,
    )