def METHOD_NAME(
    app_mock, middleware_request, start_response, schema
):
    middleware_request["REQUEST_METHOD"] = "OPTIONS"
    server = GraphQL(schema, introspection=False)
    middleware = GraphQLMiddleware(app_mock, server)
    middleware(middleware_request, start_response)
    start_response.assert_called_once_with(
        HTTP_STATUS_200_OK,
        [
            ("Content-Type", CONTENT_TYPE_TEXT_PLAIN),
            ("Content-Length", 0),
            ("Allow", "OPTIONS, POST"),
        ],
    )