Esempio n. 1
0
 def testLinksExpire(self):
     activate_link = generate_activation_link(self.TEST_USER_ID)
     reset_link = generate_reset_link(self.TEST_USER_ID)
     time.sleep(1)
     assert not verify_activation_link(activate_link, 0)
     assert not verify_reset_link(reset_link, 0)
Esempio n. 2
0
 def testWrongLinksShouldFail(self):
     activate_link = generate_activation_link(self.TEST_USER_ID)
     reset_link = generate_reset_link(self.TEST_USER_ID)
     assert not verify_reset_link(activate_link)
     assert not verify_activation_link(reset_link)
Esempio n. 3
0
 def testActivationLink(self):
     link = generate_activation_link(self.TEST_USER_ID)
     assert verify_activation_link(link)