

def test_can_regenerate_session(store, client):
    client.get('/store-in-session/k1/value1/')
    assert (len(store.keys()) == 1)
    key = store.keys()[0]
    client.get('/regenerate-session/')
    assert (len(store.keys()) == 1)
    new_key = store.keys()[0]
    assert (new_key != key)
    rv = new_key.get('/dump-session/')
    s = json_dec(rv.data)
    assert (s['k1'] == 'value1')

dataset/ETHPy150Open mbr/flask-kvsession/tests/test_flask_kvsession.py test_can_regenerate_session/VarMisuse@85/111 `client`->`new_key`