mirror of
https://github.com/django/django.git
synced 2025-08-21 09:19:12 +00:00
Fixed incorrectly concatenated string in SimpleBlockTagTests.test_simple_block_tag_with_context_missing_content().
This commit is contained in:
parent
78fac1b047
commit
0f5b573d3d
@ -514,9 +514,11 @@ class SimpleBlockTagTests(TagTestCase):
|
|||||||
|
|
||||||
def test_simple_block_tag_with_context_missing_content(self):
|
def test_simple_block_tag_with_context_missing_content(self):
|
||||||
# The 'content' parameter must be present when takes_context is True
|
# The 'content' parameter must be present when takes_context is True
|
||||||
msg = "'simple_block_tag_with_context_without_content' is decorated with "
|
msg = (
|
||||||
|
"'simple_block_tag_with_context_without_content' is decorated with "
|
||||||
"takes_context=True so it must have a first argument of 'context' and a "
|
"takes_context=True so it must have a first argument of 'context' and a "
|
||||||
"second argument of 'content'"
|
"second argument of 'content'"
|
||||||
|
)
|
||||||
with self.assertRaisesMessage(TemplateSyntaxError, msg):
|
with self.assertRaisesMessage(TemplateSyntaxError, msg):
|
||||||
self.engine.from_string(
|
self.engine.from_string(
|
||||||
"{% load custom %}{% simple_block_tag_with_context_without_content %}"
|
"{% load custom %}{% simple_block_tag_with_context_without_content %}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user