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