Example #1
0
 def test_expand_template_overwrite(self):
     self.assertEqual(generate.expand_template(
         1,
         YAML2,
         '{{ key }}',
         {'key': 'other'}
     ), 'other')
Example #2
0
 def test_expand_template_overwrite(self):
     self.assertEqual(
         generate.expand_template(1, YAML2, '{{ key }}', {'key': 'other'}),
         'other')
Example #3
0
 def test_expand_template(self):
     self.assertEqual(generate.expand_template(
         1,
         YAML2,
         '{% if step >= 1 %}a{% endif %}'), 'a')
Example #4
0
 def test_expand_template(self):
     self.assertEqual(
         generate.expand_template(1, YAML2,
                                  '{% if step >= 1 %}a{% endif %}'), 'a')