

def test_verify_timeout(self):
    token = xsrf.XSRFToken('user@example.com', 'secret', current_time=1354160000)
    token_string = token.generate_token_string()
    token.verify_token_string(token_string, timeout=10, current_time=1354160010)
    self.assertRaises(xsrf.XSRFTokenExpiredException, token.verify_token_string, token_string, timeout=10, current_time=1354160011)

dataset/ETHPy150Open Workiva/furious/furious/tests/extras/test_xsrf.py TestXSRFToken.test_verify_timeout/original