def METHOD_NAME(app_request, mocked_session_update):
    response = csrf_failure(app_request, "reason")
    assert response.status_code == 404
    assert "origin" in mocked_session_update.call_args.kwargs
    assert mocked_session_update.call_args.kwargs["origin"] == reverse(ROUTE_INDEX)