def METHOD_NAME(location, expect=None):
    if expect is None:
        expect = location
    assert 'success' in client.conf(
        {"return": 301, "location": location}, 'routes/0/action'
    ), 'configure location'
    assert client.get()['headers']['Location'] == expect