summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2014-07-25 15:23:32 -0500
committerJames Cammarata <jimi@sngx.net>2014-07-25 15:25:10 -0500
commit8959338284f6c6e44890b8911434285848f34859 (patch)
treede74391aa5401275ef6d5a76fb5f007f785dec79
parent146a3684b33d05bd1aedb5ad931e1c5286aff3cd (diff)
downloadansible-release1.6.10.tar.gz
Adding unittest for space preservation within quotes when splitting argsv1.6.10release1.6.10
-rw-r--r--test/units/TestUtils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/units/TestUtils.py b/test/units/TestUtils.py
index 6b73c5e10b..6f282a8e72 100644
--- a/test/units/TestUtils.py
+++ b/test/units/TestUtils.py
@@ -706,6 +706,12 @@ class TestUtils(unittest.TestCase):
['a', '{% if x %}', 'y', '{%else %}', '{{meow}}', '{% endif %}', 'cookiechip\ndone']
)
+ # test space preservation within quotes
+ _test_combo(
+ 'content="1 2 3 4 " foo=bar',
+ ['content="1 2 3 4 "', 'foo=bar']
+ )
+
# invalid jinja2 nesting detection
# invalid quote nesting detection