Add tests of iterative templating

pull/603/head
Daniel Hokka Zakrisson 13 years ago
parent 13b814a33c
commit 24d73b0fe6

@ -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

Loading…
Cancel
Save