summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-08-28 06:49:13 -0400
committerChris McDonough <chrism@plope.com>2011-08-28 06:49:13 -0400
commit33bcf65672737757eafba2bd8768131dd3d37aa8 (patch)
tree5187cea79e62aa5e0a94fdb70782abbbb2fc62d0
parent366a7c38c5d59fc4e9b2e72332671c4f440354a0 (diff)
downloadpyramid-33bcf65672737757eafba2bd8768131dd3d37aa8.tar.gz
pyramid-33bcf65672737757eafba2bd8768131dd3d37aa8.tar.bz2
pyramid-33bcf65672737757eafba2bd8768131dd3d37aa8.zip
add a rescan test
-rw-r--r--pyramid/tests/test_integration.py10
1 files changed, 10 insertions, 0 deletions
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