code: def test_remove_method_from_parent(app, client):
      class GetView(flask.views.MethodView):
          def get(self):
              return "GET"
  
      class OtherView(flask.views.MethodView):
          def post(self):
              return "POST"
  
      class View(GetView, OtherView):
          methods = ["GET"]
  
      app.add_url_rule("/", view_func=View.as_view("index"))
  
      assert client.get("/").data == b"GET"
      assert client.post("/").status_code == 405
      assert sorted(View.methods) == ["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 13 for calling a global function with example usage: test_remove_method_from_parent(app, client) and returns: str, str