

def test_can_destroy_sessions(client):
    client.get('/store-in-session/k1/value1/')
    client.get('/store-in-session/k2/value2/')
    rv = client.get('/dump-session/')
    s = json_dec(rv.data)
    assert (s['k1'] == 'value1')
    assert (s['k2'] == 'value2')
    rv = client.get('/destroy-session/')
    assert (b('session destroyed') in rv.data)
    rv = client.get('/dump-session/')
    s = json_dec(rv.data)
    assert (s == {
        
    })

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