diff --git a/test/TestUtils.py b/test/TestUtils.py index 006a687e8b6..b83dcb0312d 100644 --- a/test/TestUtils.py +++ b/test/TestUtils.py @@ -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