From e3dbca937860e070c556d510f60448f30281886d Mon Sep 17 00:00:00 2001 From: Marcus Cobden Date: Mon, 11 Aug 2014 08:46:47 +0100 Subject: [PATCH] Test escaping strings with two variables --- test/units/TestUtils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/units/TestUtils.py b/test/units/TestUtils.py index b091603626..a33e2080e7 100644 --- a/test/units/TestUtils.py +++ b/test/units/TestUtils.py @@ -729,6 +729,10 @@ class TestUtils(unittest.TestCase): ansible.utils._clean_data('this string has a {{variable}}', from_remote=True), 'this string has a {#variable#}' ) + self.assertEqual( + ansible.utils._clean_data('this string {{has}} two {{variables}} in it', from_remote=True), + 'this string {#has#} two {#variables#} in it' + ) self.assertEqual( ansible.utils._clean_data('this string has a {{variable with a\nnewline}}', from_remote=True), 'this string has a {#variable with a\nnewline#}'