Add tests of iterative templating

parent 545b4b63
...@@ -236,6 +236,17 @@ class TestUtils(unittest.TestCase): ...@@ -236,6 +236,17 @@ class TestUtils(unittest.TestCase):
assert res == u'hello wórld' 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 ### key-value parsing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment