diff options
| author | Bert JW Regeer <bertjw@regeer.org> | 2015-11-12 21:50:15 -0700 |
|---|---|---|
| committer | Bert JW Regeer <bertjw@regeer.org> | 2015-11-12 21:50:15 -0700 |
| commit | b084d76c8941609caca5b8fcd451ce516c1b3611 (patch) | |
| tree | 7116fe99f7b97ec31f802a1db5f45448bad05971 | |
| parent | 2c27c33e45350d98f577bf3e14fda7d66b79904d (diff) | |
| download | pyramid-b084d76c8941609caca5b8fcd451ce516c1b3611.tar.gz pyramid-b084d76c8941609caca5b8fcd451ce516c1b3611.tar.bz2 pyramid-b084d76c8941609caca5b8fcd451ce516c1b3611.zip | |
Simplify tests
| -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 |
