def METHOD_NAME(self):
    self.assertErrorResponse(
        views.PermissionDeniedView,
        {
            "code": "permission_denied",
            "title": _("You do not have permission to perform this action."),
            "status": 403,
            "detail": _("This action is not allowed"),
        },
    )