def METHOD_NAME(self, app):
    resp = app.get("/wmts/myrest/tms_cache/GLOBAL_MERCATOR/01/0/0.png", status=500)
    xml = resp.lxml
    assert validate_with_xsd(xml, xsd_name="ows/1.1.0/owsExceptionReport.xsd")
    assert_xpath_wmts(
        xml, "/ows:ExceptionReport/ows:Exception/@exceptionCode", "NoApplicableCode"
    )