summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/tests/test_router.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyramid/tests/test_router.py b/pyramid/tests/test_router.py
index c559f58d0..bd6210f75 100644
--- a/pyramid/tests/test_router.py
+++ b/pyramid/tests/test_router.py
@@ -112,6 +112,12 @@ class TestRouter(unittest.TestCase):
environ.update(extras)
return environ
+ def test_ctor_registry_has_no_settings(self):
+ self.registry.settings = None
+ router = self._makeOne()
+ self.failIf('debug_notfound' in router.__dict__)
+ self.failIf('debug_routematch' in router.__dict__)
+
def test_root_policy(self):
context = DummyContext()
self._registerTraverserFactory(context)