def test_unprotected_logout():
    auth, app, user = _get_flask_app()
    client = app.test_client()
    auth.login(user)

    r = client.get(auth.url_sign_out)
    assert auth.session in auth.session_key  # still signed in
    assert r.status == '303 SEE OTHER'

    r = client.post(auth.url_sign_out)
    assert auth.session_key in auth.session  # still signed in
    assert r.status == '303 SEE OTHER'
dataset/ETHPy150Open jpscaletti/authcode/tests/test_views.py/test_unprotected_logout/swapped operands of `in`