diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-27 08:33:11 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-27 08:33:11 +0000 |
| commit | 84bfab61ff6a5e2599b59940ef6b765459575c6a (patch) | |
| tree | fd13872e4456f517e21e7c22ac3496fa373145b0 /repoze/bfg/tests | |
| parent | 45d08c56ea330583a472b4d2808262a634fa99f1 (diff) | |
| download | pyramid-84bfab61ff6a5e2599b59940ef6b765459575c6a.tar.gz pyramid-84bfab61ff6a5e2599b59940ef6b765459575c6a.tar.bz2 pyramid-84bfab61ff6a5e2599b59940ef6b765459575c6a.zip | |
Coverage.
Diffstat (limited to 'repoze/bfg/tests')
| -rw-r--r-- | repoze/bfg/tests/test_configuration.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/repoze/bfg/tests/test_configuration.py b/repoze/bfg/tests/test_configuration.py index 1185f85c8..fcce6accd 100644 --- a/repoze/bfg/tests/test_configuration.py +++ b/repoze/bfg/tests/test_configuration.py @@ -1197,6 +1197,14 @@ class ConfiguratorTests(unittest.TestCase): self.assertEqual( config.registry.getUtility(IAuthorizationPolicy), policy) + def test__renderer_from_name_default_renderer(self): + from repoze.bfg.interfaces import IRendererFactory + config = self._makeOne() + factory = lambda *arg: 'OK' + config.registry.registerUtility(factory, IRendererFactory) + result = config._renderer_from_name(None) + self.assertEqual(result, 'OK') + def test__derive_view_as_function_context_and_request(self): def view(context, request): return 'OK' |
