Commit 36d3fedd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

revise a test according to the change of r.21329.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21419 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad2d9c51
......@@ -387,8 +387,8 @@ class TestQuery(unittest.TestCase):
def testQuotedStringFullTextKey(self):
q = Query(title='Foo d\'Ba', type='fulltext')
self.assertEquals(
dict(where_expression="MATCH title AGAINST ('Foo d''Ba' )",
select_expression_list=["MATCH title AGAINST ('Foo d''Ba' )"
dict(where_expression="MATCH title AGAINST ('+Foo +d''Ba' IN BOOLEAN MODE)",
select_expression_list=["MATCH title AGAINST ('+Foo +d''Ba' IN BOOLEAN MODE)"
" AS title_relevance"]),
q.asSQLExpression())
......
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