Commit 9faf2bb8 authored by Ivan Tyagov's avatar Ivan Tyagov

Add searchable string test for portal type which contain spaces.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36536 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bf32b7b7
......@@ -1038,6 +1038,12 @@ class TestDocument(TestDocumentMixin):
parsed_string.keys())
self.assertEquals(kw['search_portal_type'], parsed_string['portal_type'])
# parse with multiple portal_type containing spaces in one portal_type
search_string = "type:Drawing,File,Web Page"
parsed_string = parse(search_string)
self.assertEquals(parsed_string['portal_type'], 'Drawing,File,Web Page')
def test_11_SearchStringSearchCapability(self):
"""
Test search string search capabilities.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment