Example #1
0
 def test_reauth_unneeded(self):
     session = Session()
     session.record_auth_timestamp()
     assert not session.needs_reauthentication(666)
Example #2
0
 def test_reauth_record(self, pyramid_request):
     session = Session()
     assert not session.should_save()
     session.record_auth_timestamp()
     assert session.should_save()