def METHOD_NAME(temp_dir):
    assets_dir = f'{temp_dir}/assets'
    os.makedirs(f'{assets_dir}/dir')
    Path(f'{assets_dir}/index.html').write_text('0123456789')
    os.makedirs(f'{assets_dir}/403')
    os.chmod(f'{assets_dir}/403', 0o000)
    assert 'success' in client.conf(
        {
            "listeners": {
                "*:7080": {"pass": "routes"},
                "*:7081": {"pass": "routes"},
            },
            "routes": [{"action": {"share": f'{assets_dir}$uri'}}],
            "applications": {},
        }
    )
    yield
    try:
        os.chmod(f'{assets_dir}/403', 0o777)
    except FileNotFoundError:
        pass