Пример #1
0
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
Пример #2
0
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