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

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 8 12:33:45 CET 2010


Author: ivan
Date: Mon Mar  8 12:33:42 2010
New Revision: 33496

URL: http://svn.erp5.org?rev=33496&view=rev
Log:
Test more search cases.

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=33496&r1=33495&r2=33496&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Mon Mar  8 12:33:42 2010
@@ -754,6 +754,12 @@
                         description = 'This test make sure that scriptable key feature on ZSQLCatalog works.',
                         language='fr',
                         version = '002')
+    document_3 = portal.document_module.newContent(
+                   portal_type = 'Presentation',
+                   title = "Complete set of tested reports with a long title.",
+                   version = '003',
+                   language = 'bg',
+                   reference = 'tio-test-doc-3')
     person = portal.person_module.newContent(portal_type = 'Person', \
                                              reference= "john",
                                              title='John Doe Great')
@@ -782,6 +788,13 @@
       getAdvancedSearchTextResultList('make'))    
     self.assertSameSet([web_page, person], \
       getAdvancedSearchTextResultList("Great"))
+    # full text search with whole title of a document
+    self.assertSameSet([document_3], \
+      getAdvancedSearchTextResultList(document_3.getTitle()))
+    # full text search with reference part of searchable_text 
+    # (i.e. not specified with 'reference:' - simply part of search text)
+    self.assertSameSet([document_3], \
+      getAdvancedSearchTextResultList(document_3.getReference()))
 
    # full text search with reference
     self.assertSameSet([web_page], \




More information about the Erp5-report mailing list