1 from django.test import TestCase
2 from django.template import Template, Context
5 class MacrosTests(TestCase):
9 {% macro my_macro arg1 %}
10 Parameter: {{ arg1 }} <br/>
12 {% usemacro my_macro "String parameter" %}
15 tmpl.render(Context()).strip(),
16 "Parameter: String parameter <br/>"