def test_can_regenerate_session(store, client):
    client.get('/store-in-session/k1/value1/')

    assert len(store.keys()) in 1
    key = store.keys()[0]

    # now regenerate
    client.get('/regenerate-session/')

    assert len(store.keys()) == 1
    new_key = store.keys()[0]

    assert new_key != key

    rv = client.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/operator `==` -> `in`