diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-04-19 08:58:54 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-04-19 08:58:54 +0000 |
| commit | cdae91d72b7bfa5edb26e12e721891a3ce2f2aa7 (patch) | |
| tree | 5345a838f8f1aa868f8dc1d819ba1d034f9375c3 /repoze/bfg/tests/test_configuration.py | |
| parent | f5c6c574ada26ec0b2766f5ca20bb2b5b7393ec5 (diff) | |
| download | pyramid-cdae91d72b7bfa5edb26e12e721891a3ce2f2aa7.tar.gz pyramid-cdae91d72b7bfa5edb26e12e721891a3ce2f2aa7.tar.bz2 pyramid-cdae91d72b7bfa5edb26e12e721891a3ce2f2aa7.zip | |
Pass along translate function to templates.
Diffstat (limited to 'repoze/bfg/tests/test_configuration.py')
| -rw-r--r-- | repoze/bfg/tests/test_configuration.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/repoze/bfg/tests/test_configuration.py b/repoze/bfg/tests/test_configuration.py index b4f7600f5..efd58139f 100644 --- a/repoze/bfg/tests/test_configuration.py +++ b/repoze/bfg/tests/test_configuration.py @@ -1738,11 +1738,15 @@ class ConfiguratorTests(unittest.TestCase): def test_set_translator_factory(self): from repoze.bfg.interfaces import ITranslatorFactory + from repoze.bfg.interfaces import IChameleonTranslate def factory(): pass config = self._makeOne() config.set_translator_factory(factory) self.assertEqual(config.registry.getUtility(ITranslatorFactory), factory) + self.assertEqual( + config.registry.getUtility(IChameleonTranslate).translator_factory, + factory) def test_set_notfound_view(self): from zope.interface import implementedBy |
