Add tests of iterative templating

This commit is contained in:
Daniel Hokka Zakrisson 2012-06-16 13:13:01 +02:00
parent 545b4b63d8
commit 682e728ebf

View file

@ -236,6 +236,17 @@ class TestUtils(unittest.TestCase):
assert res == u'hello wórld'
def test_template_varReplace_iterated(self):
template = 'hello $who'
vars = {
'who': 'oh great $person',
'person': 'one',
}
res = ansible.utils.template(template, vars)
assert res == u'hello oh great one'
#####################################
### key-value parsing