diff --git a/test/TestUtils.py b/test/TestUtils.py index 5c1df13bcb..7232ee680b 100644 --- a/test/TestUtils.py +++ b/test/TestUtils.py @@ -324,6 +324,10 @@ class TestUtils(unittest.TestCase): res = ansible.utils.varReplaceWithItems(None, template, vars) assert sorted(res) == sorted(vars['alphas']) + template = '${data.nonexisting}' + res = ansible.utils.varReplaceWithItems(None, template, vars) + assert res == template + ##################################### ### Template function tests