def METHOD_NAME(self, app, url):
    resp = app.get(url, status=400)
    xml = resp.lxml
    assert resp.content_type == "text/xml"
    assert validate_with_xsd(xml, xsd_name="ows/1.1.0/owsExceptionReport.xsd")
    assert_xpath_wmts(
        xml,
        "/ows:ExceptionReport/ows:Exception/@exceptionCode",
        "InvalidParameterValue",
    )