def METHOD_NAME(spec):
    method_view_app = build_app_from_fixture(
        "method_view",
        app_class=FlaskApp,
        spec_file=spec,
        resolver=MethodViewResolver("fakeapi.example_method_view"),
    )
    client = method_view_app.test_client()
    r = client.get("/v1.0/pets")
    assert r.json() == [{"name": "get"}]
    r = client.get("/v1.0/pets/1")
    assert r.json() == {"name": "get", "petId": 1}
    r = client.post("/v1.0/pets", json={"name": "Musti"})
    assert r.json() == {"name": "post", "body": {"name": "Musti"}}
    r = client.put("/v1.0/pets/1", json={"name": "Igor"})
    assert r.json() == {"name": "put", "petId": 1, "body": {"name": "Igor"}}