diff options
| -rw-r--r-- | pyramid/tests/test_authentication.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/pyramid/tests/test_authentication.py b/pyramid/tests/test_authentication.py index 1a367fd15..4a6525af2 100644 --- a/pyramid/tests/test_authentication.py +++ b/pyramid/tests/test_authentication.py @@ -761,17 +761,13 @@ class TestAuthTktCookieHelper(unittest.TestCase): result = helper.identify(request) self.assertEqual(result, None) - def test_identify_cookie_timed_out(self): + def test_identify_cookie_timeout(self): helper = self._makeOne('secret', timeout=1) - request = self._makeRequest({'HTTP_COOKIE':'auth_tkt=bogus'}) - result = helper.identify(request) - self.assertEqual(result, None) + self.assertEqual(helper.timeout, 1) def test_identify_cookie_str_timeout(self): helper = self._makeOne('secret', timeout='1') - request = self._makeRequest({'HTTP_COOKIE':'auth_tkt=bogus'}) - result = helper.identify(request) - self.assertEqual(result, None) + self.assertEqual(helper.timeout, 1) def test_identify_cookie_reissue(self): import time |
