| | |
| | | res = self.testapp.get('/hello', status=200) |
| | | self.assertTrue('Hello' in res.body) |
| | | |
| | | class RendererScanAppTest(IntegrationBase): |
| | | package = 'pyramid.tests.rendererscanapp' |
| | | def test_root(self): |
| | | res = self.testapp.get('/one', status=200) |
| | | self.assertTrue('One!' in res.body) |
| | | if os.name != 'java': # uses chameleon |
| | | class RendererScanAppTest(IntegrationBase): |
| | | package = 'pyramid.tests.rendererscanapp' |
| | | def test_root(self): |
| | | res = self.testapp.get('/one', status=200) |
| | | self.assertTrue('One!' in res.body) |
| | | |
| | | def test_two(self): |
| | | res = self.testapp.get('/two', status=200) |
| | | self.assertTrue('Two!' in res.body) |
| | | def test_two(self): |
| | | res = self.testapp.get('/two', status=200) |
| | | self.assertTrue('Two!' in res.body) |
| | | |
| | | def test_rescan(self): |
| | | self.config.scan('pyramid.tests.rendererscanapp') |
| | | app = self.config.make_wsgi_app() |
| | | from webtest import TestApp |
| | | testapp = TestApp(app) |
| | | res = testapp.get('/one', status=200) |
| | | self.assertTrue('One!' in res.body) |
| | | res = testapp.get('/two', status=200) |
| | | self.assertTrue('Two!' in res.body) |
| | | def test_rescan(self): |
| | | self.config.scan('pyramid.tests.rendererscanapp') |
| | | app = self.config.make_wsgi_app() |
| | | from webtest import TestApp |
| | | testapp = TestApp(app) |
| | | res = testapp.get('/one', status=200) |
| | | self.assertTrue('One!' in res.body) |
| | | res = testapp.get('/two', status=200) |
| | | self.assertTrue('Two!' in res.body) |
| | | |
| | | class DummyContext(object): |
| | | pass |