From dc60f2d844d3ef5a2289d42472b686c009654ca3 Mon Sep 17 00:00:00 2001 From: Jeroen Hoekx Date: Fri, 11 May 2012 14:14:53 +0200 Subject: Allow camelCase variables in varreplace. --- test/TestUtils.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') 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 = { -- cgit v1.2.1