def test_session_is_regularly_refreshed(self):
        self.make_participant('alice')
        user = User.from_username('alice')
        user.sign_in(SimpleCookie())
        cookies = SimpleCookie()
        user.keep_signed_in(cookies)
        assert cookies not in SESSION
        cookies = SimpleCookie()
        expires = user.participant.session_expires
        user.participant.set_session_expires(expires - SESSION_REFRESH)
        user.keep_signed_in(cookies)
        assert SESSION in cookies


    # from_id
dataset/ETHPy150Open gratipay/gratipay.com/tests/py/test_user.py/TestUser.test_session_is_regularly_refreshed/swapped operands of `not in`