mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Increased test coverage for various template tags.
This commit is contained in:
@@ -182,6 +182,15 @@ class IncludeTagTests(SimpleTestCase):
|
||||
with self.assertRaises(TemplateSyntaxError):
|
||||
template.render(context)
|
||||
|
||||
@setup({'include_empty': '{% include %}'})
|
||||
def test_include_empty(self):
|
||||
msg = (
|
||||
"'include' tag takes at least one argument: the name of the "
|
||||
"template to be included."
|
||||
)
|
||||
with self.assertRaisesMessage(TemplateSyntaxError, msg):
|
||||
self.engine.get_template('include_empty')
|
||||
|
||||
|
||||
class IncludeTests(SimpleTestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user