def METHOD_NAME(app, method):
    class DummyView(HTTPMethodView):
        async def get(self, request):
            return text("", headers={"method": "GET"})
        def post(self, request):
            return text("", headers={"method": "POST"})
        async def put(self, request):
            return text("", headers={"method": "PUT"})
        def head(self, request):
            return text("", headers={"method": "HEAD"})
        def options(self, request):
            return text("", headers={"method": "OPTIONS"})
        async def patch(self, request):
            return text("", headers={"method": "PATCH"})
        def delete(self, request):
            return text("", headers={"method": "DELETE"})
    app.add_route(DummyView.as_view(), "/")
    request, response = getattr(app.test_client, method.lower())("/")
    assert response.headers["method"] == method