From 2c3754388a44a0d80c0990077af4e211be052fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 10 May 2010 12:46:45 +0000 Subject: [PATCH] be more precise when searching catalog git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35131 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5OOo/tests/testDms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/product/ERP5OOo/tests/testDms.py b/product/ERP5OOo/tests/testDms.py index b041a58d00..c2a70e9118 100644 --- a/product/ERP5OOo/tests/testDms.py +++ b/product/ERP5OOo/tests/testDms.py @@ -816,7 +816,7 @@ class TestDocument(TestDocumentMixin): self.assertSameSet([document_1, document_2], \ getAdvancedSearchTextResultList('make')) self.assertSameSet([web_page, person], \ - getAdvancedSearchTextResultList("Great")) + getAdvancedSearchTextResultList("Great", ('Person', 'Web Page'))) # full text search with whole title of a document self.assertSameSet([document_3], \ getAdvancedSearchTextResultList(document_3.getTitle())) @@ -842,7 +842,8 @@ class TestDocument(TestDocumentMixin): # full text search with portal_type passed outside searchable_text self.assertSameSet([web_page, person], - getAdvancedSearchTextResultList('Great')) + getAdvancedSearchTextResultList('Great', + ('Person', 'Web Page'))) self.assertSameSet([web_page], \ getAdvancedSearchTextResultList('Great', web_page.getPortalType())) self.assertSameSet([person], \ -- 2.30.9