diff options
Diffstat (limited to 'tests/template_tests/test_base.py')
| -rw-r--r-- | tests/template_tests/test_base.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/template_tests/test_base.py b/tests/template_tests/test_base.py index 3bc857abee..475a647dd2 100644 --- a/tests/template_tests/test_base.py +++ b/tests/template_tests/test_base.py @@ -1,5 +1,12 @@ -from django.template.base import Variable, VariableDoesNotExist +from django.template import Context, Template, Variable, VariableDoesNotExist from django.test import SimpleTestCase +from django.utils.translation import gettext_lazy + + +class TemplateTests(SimpleTestCase): + def test_lazy_template_string(self): + template_string = gettext_lazy('lazy string') + self.assertEqual(Template(template_string).render(Context()), template_string) class VariableDoesNotExistTests(SimpleTestCase): |
