1 from __future__ import unicode_literals
3 from django.test import TestCase
4 from django.template import Template, Context
7 class MacrosTests(TestCase):
11 {% macro my_macro arg1 %}
12 Parameter: {{ arg1 }} <br/>
14 {% usemacro my_macro "String parameter" %}
17 tmpl.render(Context()).strip(),
18 "Parameter: String parameter <br/>"