diff options
Diffstat (limited to 'repoze/bfg/tests/test_chameleon_text.py')
| -rw-r--r-- | repoze/bfg/tests/test_chameleon_text.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/repoze/bfg/tests/test_chameleon_text.py b/repoze/bfg/tests/test_chameleon_text.py index 38bbc060c..cb30f489a 100644 --- a/repoze/bfg/tests/test_chameleon_text.py +++ b/repoze/bfg/tests/test_chameleon_text.py @@ -90,6 +90,16 @@ class TextTemplateRendererTests(Base, unittest.TestCase): template = instance.template self.assertEqual(template.auto_reload, True) + def test_template_with_emptydict(self): + from repoze.bfg.interfaces import ISettings + self.config.registry.registerUtility({}, ISettings) + minimal = self._getTemplatePath('minimal.txt') + instance = self._makeOne(minimal) + self.failIf('template' in instance.__dict__) + template = instance.template + self.assertEqual(template.auto_reload, False) + self.assertEqual(template.debug, False) + def test_call(self): minimal = self._getTemplatePath('minimal.txt') instance = self._makeOne(minimal) |
