예제 #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'}))