diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-04-21 10:35:07 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-04-21 10:35:07 +0000 |
| commit | 51981a128c7ed05e51938a3f358c0970dcc33a6f (patch) | |
| tree | 60b8b1cde60e28ea2d1bc6139dab47de444b0ed6 /repoze/bfg/tests/test_chameleon_text.py | |
| parent | 1c7039e337401ceb7eb16040234dcf9da8335f55 (diff) | |
| download | pyramid-51981a128c7ed05e51938a3f358c0970dcc33a6f.tar.gz pyramid-51981a128c7ed05e51938a3f358c0970dcc33a6f.tar.bz2 pyramid-51981a128c7ed05e51938a3f358c0970dcc33a6f.zip | |
Moved i18n work to a branch and revert to pre-i18n-feature state via svn merge -r9054:9030 svn+ssh://repoze@svn.repoze.org/svn/repoze.bfg/trunk
Diffstat (limited to 'repoze/bfg/tests/test_chameleon_text.py')
| -rw-r--r-- | repoze/bfg/tests/test_chameleon_text.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/repoze/bfg/tests/test_chameleon_text.py b/repoze/bfg/tests/test_chameleon_text.py index 204805adb..007c102e3 100644 --- a/repoze/bfg/tests/test_chameleon_text.py +++ b/repoze/bfg/tests/test_chameleon_text.py @@ -28,16 +28,6 @@ class Base: class TextTemplateRendererTests(Base, unittest.TestCase): - def setUp(self): - from repoze.bfg.configuration import Configurator - from repoze.bfg.registry import Registry - registry = Registry() - self.config = Configurator(registry=registry) - self.config.begin() - - def tearDown(self): - self.config.end() - def _getTargetClass(self): from repoze.bfg.chameleon_text import TextTemplateRenderer return TextTemplateRenderer @@ -64,16 +54,6 @@ class TextTemplateRendererTests(Base, unittest.TestCase): template = instance.template self.assertEqual(template, instance.__dict__['template']) - def test_template_with_ichameleon_translate(self): - from repoze.bfg.interfaces import IChameleonTranslate - def ct(): pass - self.config.registry.registerUtility(ct, IChameleonTranslate) - minimal = self._getTemplatePath('minimal.txt') - instance = self._makeOne(minimal) - self.failIf('template' in instance.__dict__) - template = instance.template - self.assertEqual(template.translate, ct) - def test_call(self): minimal = self._getTemplatePath('minimal.txt') instance = self._makeOne(minimal) |
