| | |
| | | |
| | | def test_identify_cookie_reissue(self): |
| | | import time |
| | | plugin = self._makeOne('secret', timeout=5, reissue_time=0) |
| | | plugin = self._makeOne('secret', timeout=5000, reissue_time=0) |
| | | plugin.auth_tkt.timestamp = time.time() |
| | | request = self._makeRequest({'HTTP_COOKIE':'auth_tkt=bogus'}) |
| | | result = plugin.identify(request) |
| | |
| | | result = self._callFUT(info, factory) |
| | | self.failUnless(result is renderer) |
| | | path = os.path.abspath(__file__).split('$')[0] # jython |
| | | if path.endswith('.pyc'): |
| | | path = path[:-1] |
| | | self.failUnless(factory.path.startswith(path)) |
| | | self.assertEqual(factory.kw, {}) |
| | | |