def test_auth_cookie_is_valid_allow_current(current_cookie): cookie = login._fetch_cookie(current_cookie) assert login.auth_cookie_is_valid(cookie) is True
def test_auth_cookie_is_valid_refuse_pre_20(pre_20_cookie): cookie = login._fetch_cookie(pre_20_cookie) assert login.auth_cookie_is_valid(cookie) is False