Drop i18n_patterns prefix parameter.
[fnpdjango.git] / tests / tests / test_templatetags_macros.py
1 from __future__ import unicode_literals
2
3 from django.test import TestCase
4 from django.template import Template, Context
5
6
7 class MacrosTests(TestCase):
8     def test_macro(self):
9         tmpl = Template("""
10             {% load macros %}
11             {% macro my_macro arg1 %}
12             Parameter: {{ arg1 }} <br/>
13             {% endmacro %}
14             {% usemacro my_macro "String parameter" %}
15         """)
16         self.assertEqual(
17             tmpl.render(Context()).strip(),
18             "Parameter: String parameter <br/>"
19         )