def METHOD_NAME():
    assert 'success' in client.conf(
        [
            {
                "match": {"uri": "/foo", "arguments": {"arg": "val"}},
                "action": {"rewrite": "/new?some", "pass": "routes"},
            },
            {
                "match": {"uri": "/new", "arguments": {"arg": "val"}},
                "action": {"return": 200},
            },
        ],
        'routes',
    )
    assert client.get(url='/foo?arg=val')['status'] == 200