summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/template_tests/tests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py
index 034280f08d..c2179b43c1 100644
--- a/tests/template_tests/tests.py
+++ b/tests/template_tests/tests.py
@@ -338,6 +338,17 @@ class TemplateLoaderTests(TestCase):
loader.template_source_loaders = old_loaders
settings.TEMPLATE_DEBUG = old_td
+ def test_include_template_argument(self):
+ """
+ Support any render() supporting object
+ """
+ ctx = Context({
+ 'tmpl': Template('This worked!'),
+ })
+ outer_tmpl = Template('{% include tmpl %}')
+ output = outer_tmpl.render(ctx)
+ self.assertEqual(output, 'This worked!')
+
class TemplateRegressionTests(TestCase):