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