Commit 51bb8b90 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Add a test for r33656.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33669 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 05a50c3d
......@@ -507,6 +507,9 @@ class TestSQLCatalog(unittest.TestCase):
"""
self.catalog(ReferenceQuery(ReferenceQuery(operator='match_boolean', fulltext='a+b'), operator='and'),
{'fulltext': 'a+b'})
self.catalog(ReferenceQuery(ReferenceQuery( ReferenceQuery(operator='=', uid='foo'),
ReferenceQuery(operator='match_boolean', fulltext='+a b'), operator='and'
), operator='and'), {'fulltext': '+a b uid:foo'})
def test_DefaultKeyTextRendering(self):
self.catalog(ReferenceQuery(ReferenceQuery(operator='like', default='a% b'), operator='and'),
......
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