[Erp5-report] r36536 ivan - /erp5/trunk/products/ERP5OOo/tests/testDms.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 23 13:39:31 CEST 2010


Author: ivan
Date: Wed Jun 23 13:39:24 2010
New Revision: 36536

URL: http://svn.erp5.org?rev=36536&view=rev
Log:
Add searchable string test for portal type which contain spaces.

Modified:
    erp5/trunk/products/ERP5OOo/tests/testDms.py

Modified: erp5/trunk/products/ERP5OOo/tests/testDms.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testDms.py?rev=36536&r1=36535&r2=36536&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Wed Jun 23 13:39:24 2010
@@ -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.




More information about the Erp5-report mailing list