summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests/test_cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_tests/syntax_tests/test_cache.py')
-rw-r--r--tests/template_tests/syntax_tests/test_cache.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/tests/template_tests/syntax_tests/test_cache.py b/tests/template_tests/syntax_tests/test_cache.py
index 2039e7808c..7f7a6cd2cb 100644
--- a/tests/template_tests/syntax_tests/test_cache.py
+++ b/tests/template_tests/syntax_tests/test_cache.py
@@ -100,16 +100,18 @@ class CacheTagTests(SimpleTestCase):
"""
Regression test for #11270.
"""
- output = self.engine.render_to_string('cache17', {'poem': 'Oh freddled gruntbuggly/'
- 'Thy micturations are to me/'
- 'As plurdled gabbleblotchits/'
- 'On a lurgid bee/'
- 'That mordiously hath bitled out/'
- 'Its earted jurtles/'
- 'Into a rancid festering/'
- 'Or else I shall rend thee in the gobberwarts'
- 'with my blurglecruncheon/'
- 'See if I dont.'})
+ output = self.engine.render_to_string(
+ 'cache17',
+ {
+ 'poem': (
+ 'Oh freddled gruntbuggly/Thy micturations are to me/'
+ 'As plurdled gabbleblotchits/On a lurgid bee/'
+ 'That mordiously hath bitled out/Its earted jurtles/'
+ 'Into a rancid festering/Or else I shall rend thee in the gobberwarts'
+ 'with my blurglecruncheon/See if I dont.'
+ ),
+ }
+ )
self.assertEqual(output, 'Some Content')
@setup({'cache18': '{% load cache custom %}{% cache 2|noop:"x y" cache18 %}cache18{% endcache %}'})