Add test case for non-existing variable in varReplaceWithItems

This commit is contained in:
Daniel Hokka Zakrisson 2012-11-01 19:23:08 +01:00
parent 07ba7e2013
commit 56314f7225

View file

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