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#}'