Chris McDonough
2010-11-17 e6e0741dbfd90a8d6006bc195bfb5bdf8492ecfe
make test pass on jython
2 files modified
4 ■■■ changed files
pyramid/tests/test_authentication.py 2 ●●● patch | view | raw | blame | history
pyramid/tests/test_renderers.py 2 ●●●●● patch | view | raw | blame | history
pyramid/tests/test_authentication.py
@@ -411,7 +411,7 @@
    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)
pyramid/tests/test_renderers.py
@@ -138,6 +138,8 @@
        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, {})