def test_pop_logout(pop_server_config): srv = POPServer(**pop_server_config) srv.login() srv.logout() assert srv.is_login() is False and srv._login is False
def test_pop_duplicate_login(pop_server_config): srv = POPServer(**pop_server_config) srv.login() srv.login() assert srv.is_login() is True and srv._login is True srv.logout()