summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-10-31 11:38:53 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-10-31 11:38:53 +0100
commitc0c1bb9e64d7e1cea50dc4818ffcf229b568578b (patch)
tree8eb0c20045034a8cc99a3ab90d199261e6082401 /django
parentf2ddc439b1938acb6cae693bda9d8cf83a4583be (diff)
Avoided using private API get_template_from_string.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/webdesign/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/webdesign/tests.py b/django/contrib/webdesign/tests.py
index 239af194b7..fea378807f 100644
--- a/django/contrib/webdesign/tests.py
+++ b/django/contrib/webdesign/tests.py
@@ -3,12 +3,12 @@ from __future__ import unicode_literals
import unittest
-from django.template import loader, Context
+from django.template import Context, Template
class WebdesignTest(unittest.TestCase):
def test_lorem_tag(self):
- t = loader.get_template_from_string("{% load webdesign %}{% lorem 3 w %}")
+ t = Template("{% load webdesign %}{% lorem 3 w %}")
self.assertEqual(t.render(Context({})),
'lorem ipsum dolor')