From 9faf2bb8382b95192674f997277ba08b3df78dbc Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Wed, 23 Jun 2010 11:39:24 +0000 Subject: [PATCH] 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 --- product/ERP5OOo/tests/testDms.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/product/ERP5OOo/tests/testDms.py b/product/ERP5OOo/tests/testDms.py index 9082ae397b..37e110406c 100644 --- a/product/ERP5OOo/tests/testDms.py +++ b/product/ERP5OOo/tests/testDms.py @@ -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. -- 2.30.9