From 33bcf65672737757eafba2bd8768131dd3d37aa8 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 28 Aug 2011 06:49:13 -0400 Subject: add a rescan test --- pyramid/tests/test_integration.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyramid/tests/test_integration.py b/pyramid/tests/test_integration.py index a45b9e5a5..a8326f848 100644 --- a/pyramid/tests/test_integration.py +++ b/pyramid/tests/test_integration.py @@ -481,6 +481,16 @@ class RendererScanAppTest(IntegrationBase): 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) + class DummyContext(object): pass -- cgit v1.2.3