summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/TestUtils.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/TestUtils.py b/test/TestUtils.py
index aeabdb0dbb..114ac71c0a 100644
--- a/test/TestUtils.py
+++ b/test/TestUtils.py
@@ -45,6 +45,16 @@ class TestUtils(unittest.TestCase):
assert res == 'hello world'
+ def test_varReplace_caps(self):
+ template = 'hello $whoVar'
+ vars = {
+ 'whoVar': 'world',
+ }
+
+ res = ansible.utils.varReplace(template, vars)
+ print res
+ assert res == 'hello world'
+
def test_varReplace_middle(self):
template = 'hello $who!'
vars = {