1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Index: python-pyramid-zcml-1.0.0/pyramid_zcml/tests/test_integration.py
===================================================================
--- python-pyramid-zcml-1.0.0.orig/pyramid_zcml/tests/test_integration.py
+++ python-pyramid-zcml-1.0.0/pyramid_zcml/tests/test_integration.py
@@ -101,25 +101,6 @@ class TestRestBugApp(IntegrationBase):
res = self.testapp.get('/pet', status=200)
self.assertEqual(res.body, b'gotten')
-class TestViewDecoratorApp(IntegrationBase):
- config = 'pyramid_zcml.tests.viewdecoratorapp:configure.zcml'
- def _configure_mako(self):
- tmpldir = os.path.join(os.path.dirname(__file__), 'viewdecoratorapp',
- 'views')
- self.config.registry.settings['mako.directories'] = tmpldir
-
- def test_first(self):
- # we use mako here instead of chameleon because it works on Jython
- self._configure_mako()
- res = self.testapp.get('/first', status=200)
- self.assertTrue(b'OK' in res.body)
-
- def test_second(self):
- # we use mako here instead of chameleon because it works on Jython
- self._configure_mako()
- res = self.testapp.get('/second', status=200)
- self.assertTrue(b'OK2' in res.body)
-
class TestViewPermissionBug(IntegrationBase):
# view_execution_permitted bug as reported by Shane at http://lists.repoze.org/pipermail/repoze-dev/2010-October/003603.html
config = 'pyramid_zcml.tests.permbugapp:configure.zcml'
|