diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-11-10 21:40:26 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-12-28 14:47:31 +0100 |
| commit | 7eefdbf7ab9f5bafe5baae2b877d93efc90e3044 (patch) | |
| tree | 4b9430487a775ad62415d983d56531cee7f5d0d1 /tests/template_tests/tests.py | |
| parent | bfa21ddf7649799a2254b50cb83eb5276cb7f129 (diff) | |
Cleaned up the django.template namespace.
Since this package is going to hold both the implementation of the Django
Template Language and the infrastructure for Multiple Template Engines,
it should be untied from the DTL as much as possible within our
backwards-compatibility policy.
Only public APIs (i.e. APIs mentioned in the documentation) were left.
Diffstat (limited to 'tests/template_tests/tests.py')
| -rw-r--r-- | tests/template_tests/tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py index 2ba1cdb18a..80f926ea6f 100644 --- a/tests/template_tests/tests.py +++ b/tests/template_tests/tests.py @@ -8,7 +8,8 @@ import unittest from django import template from django.contrib.auth.models import Group from django.core import urlresolvers -from django.template import loader, Context, RequestContext, Template, TemplateSyntaxError +from django.template import (base as template_base, loader, + Context, RequestContext, Template, TemplateSyntaxError) from django.template.engine import Engine from django.template.loaders import app_directories, filesystem from django.test import RequestFactory, SimpleTestCase @@ -245,7 +246,7 @@ class TemplateRegressionTests(SimpleTestCase): def test_token_smart_split(self): # Regression test for #7027 - token = template.Token(template.TOKEN_BLOCK, 'sometag _("Page not found") value|yesno:_("yes,no")') + token = template_base.Token(template_base.TOKEN_BLOCK, 'sometag _("Page not found") value|yesno:_("yes,no")') split = token.split_contents() self.assertEqual(split, ["sometag", '_("Page not found")', 'value|yesno:_("yes,no")']) |
