Beispiel #1
0
 def test_format_template_content_numbered(self):
     """_ftc handles numbered arguments"""
     eq_('a:b', _ftc('{{{1}}}:{{{2}}}', {'1': 'a', '2': 'b'}))
Beispiel #2
0
 def test_format_template_content_named(self):
     """_ftc handles named arguments"""
     eq_('ab', _ftc('{{{some}}}{{{content}}}',
                    {'some': 'a', 'content': 'b'}))
Beispiel #3
0
 def test_format_template_content_numbered(self):
     """_ftc handles numbered arguments"""
     eq_('a:b', _ftc('{{{1}}}:{{{2}}}', {'1': 'a', '2': 'b'}))
Beispiel #4
0
 def test_format_template_content_named(self):
     """_ftc handles named arguments"""
     eq_('ab', _ftc('{{{some}}}{{{content}}}',
                    {'some': 'a', 'content': 'b'}))
Beispiel #5
0
 def test_format_template_content_numbered(self):
     """_ftc handles numbered arguments"""
     eq_("a:b", _ftc("{{{1}}}:{{{2}}}", {"1": "a", "2": "b"}))
Beispiel #6
0
 def test_format_template_content_named(self):
     """_ftc handles named arguments"""
     eq_("ab", _ftc("{{{some}}}{{{content}}}", {"some": "a", "content": "b"}))