def METHOD_NAME(self):
    app = flask.Flask(__name__)
    class Index(flask.views.View):
        methods = ['GET', 'POST']
        def dispatch_request(self):
            return flask.request.method
    app.add_url_rule('/', view_func=Index.as_view('index'))
    self.common_test(app)