From a8c2d6acd5f117032a633a4fe96c4d8cd82b8dd4 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 25 Jul 2014 15:23:32 -0500 Subject: [PATCH] Adding unittest for space preservation within quotes when splitting args --- test/units/TestUtils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/units/TestUtils.py b/test/units/TestUtils.py index 9fcad75fcb..8007b87c82 100644 --- a/test/units/TestUtils.py +++ b/test/units/TestUtils.py @@ -707,6 +707,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