|
|
@ -729,6 +729,10 @@ class TestUtils(unittest.TestCase):
|
|
|
|
ansible.utils._clean_data('this string has a {{variable}}', from_remote=True),
|
|
|
|
ansible.utils._clean_data('this string has a {{variable}}', from_remote=True),
|
|
|
|
'this string has a {#variable#}'
|
|
|
|
'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(
|
|
|
|
self.assertEqual(
|
|
|
|
ansible.utils._clean_data('this string has a {{variable with a\nnewline}}', from_remote=True),
|
|
|
|
ansible.utils._clean_data('this string has a {{variable with a\nnewline}}', from_remote=True),
|
|
|
|
'this string has a {#variable with a\nnewline#}'
|
|
|
|
'this string has a {#variable with a\nnewline#}'
|
|
|
|