def METHOD_NAME(self, app, cache_dir):
    # request tile from tms_transf,
    # should get tile from tms_source via tms_cache_in/out
    expected_reqs = []
    with tmp_image((256, 256), format="jpeg") as img:
        for tile in [(8, 11, 4), (8, 10, 4)]:
            expected_reqs.append(
                (
                    {
                        "path": r"/tiles/%02d/000/000/%03d/000/000/%03d.png"
                        % (tile[2], tile[0], tile[1])
                    },
                    {"body": img.read(), "headers": {"content-type": "image/png"}},
                )
            )
        with mock_httpd(("localhost", 42423), expected_reqs, unordered=True):
            resp = app.get("/tms/1.0.0/tms_transf/EPSG25832/0/0/0.png")
            assert resp.content_type == "image/png"
    assert cache_dir.join(
        "tms_cache_out_EPSG25832/00/000/000/000/000/000/000.png"
    ).check()