code: def test_methods_var_inheritance(app, client):
      class BaseView(flask.views.MethodView):
          methods = ["GET", "PROPFIND"]
  
      class ChildView(BaseView):
          def get(self):
              return "GET"
  
          def propfind(self):
              return "PROPFIND"
  
      app.add_url_rule("/", view_func=ChildView.as_view("index"))
  
      assert client.get("/").data == b"GET"
      assert client.open("/", method="PROPFIND").data == b"PROPFIND"
      assert ChildView.methods == {"PROPFIND", "GET"}
  
file_path: flask/tests/test_views.py
imports: import pytest
  from werkzeug.http import parse_set_header
  import flask.views
label_desc: Use image node_id 11 for calling a global function with example usage: test_methods_var_inheritance(app, client) and returns: str, str