--- a/web/test/unittest_magicsearch.py Sun Aug 02 11:54:02 2009 +0200
+++ b/web/test/unittest_magicsearch.py Sun Aug 02 11:54:48 2009 +0200
@@ -169,10 +169,11 @@
(u'Utilisateur P', (u"CWUser P",)),
(u'Utilisateur cubicweb', (u'CWUser C WHERE C has_text %(text)s', {'text': u'cubicweb'})),
(u'CWUser prénom cubicweb', (u'CWUser C WHERE C firstname %(text)s', {'text': 'cubicweb'},)),
- (u'Any X WHERE X is Something', (u"Any X WHERE X is Something",)),
]
for query, expected in queries:
self.assertEquals(self.proc.preprocess_query(query, self.req), expected)
+ self.assertRaises(BadRQLQuery,
+ self.proc.preprocess_query, 'Any X WHERE X is Something', self.req)