[Erp5-report] r27684 - /erp5/trunk/products/ZSQLCatalog/tests/testSQLCatalog.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jun 19 14:58:42 CEST 2009


Author: vincent
Date: Fri Jun 19 14:58:41 2009
New Revision: 27684

URL: http://svn.erp5.org?rev=27684&view=rev
Log:
Default key text rendering was not tested yet. This test verifies that recent fix stay correct.

Modified:
    erp5/trunk/products/ZSQLCatalog/tests/testSQLCatalog.py

Modified: erp5/trunk/products/ZSQLCatalog/tests/testSQLCatalog.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/tests/testSQLCatalog.py?rev=27684&r1=27683&r2=27684&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/tests/testSQLCatalog.py [utf8] (original)
+++ erp5/trunk/products/ZSQLCatalog/tests/testSQLCatalog.py [utf8] Fri Jun 19 14:58:41 2009
@@ -430,6 +430,15 @@
     self.catalog(ReferenceQuery(ReferenceQuery(operator='match_boolean', fulltext='a+b'), operator='and'),
                  {'fulltext': 'a+b'})
 
+  def test_DefaultKeyTextRendering(self):
+    self.catalog(ReferenceQuery(ReferenceQuery(operator='like', default='a% b'), operator='and'),
+                 {'default': 'a% b'})
+    self.catalog(ReferenceQuery(ReferenceQuery(operator='like', default='%a%'), operator='and'),
+                 {'default': '%a%'})
+    self.catalog(ReferenceQuery(ReferenceQuery(ReferenceQuery(operator='like', default='a% b'),
+                                               ReferenceQuery(operator='like', default='a%'), operator='or'), operator='and'),
+                 {'default': ['a% b', 'a%']})
+
 ##return catalog(title=Query(title='a', operator='not'))
 #return catalog(title={'query': 'a', 'operator': 'not'})
 #return catalog(title={'query': ['a', 'b'], 'operator': 'not'})




More information about the Erp5-report mailing list