Switch to side-by-side view
--- a/Allura/allura/tests/test_helpers.py +++ b/Allura/allura/tests/test_helpers.py @@ -249,3 +249,8 @@ def test_datetimeformat(): from datetime import date assert h.datetimeformat(date(2013, 01, 01)) == '2013-01-01 00:00:00' + + +def test_split_select_field_options(): + assert_equals(h.split_select_field_options('"test message" test2'), ['test message', 'test2']) + assert_equals(h.split_select_field_options('"test message test2'), ['test', 'message', 'test2'])