

def test_destroying_session_does_not_immediately_create_new(client, store):
    client.get('/store-in-session/k1/value1/')
    client.get('/make-session-permanent/')
    assert list(store.keys())
    client.get('/destroy-session/')
    assert (not list(store.keys()))

dataset/ETHPy150Open mbr/flask-kvsession/tests/test_flask_kvsession.py test_destroying_session_does_not_immediately_create_new/original