[Zope-Checkins] CVS: Zope2 - testTextIndex.py:1.1.2.2

andreas@serenade.digicool.com andreas@serenade.digicool.com
Mon, 21 May 2001 10:54:38 -0400


Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/tests
In directory serenade:/tmp/cvs-serv13486/tests

Modified Files:
      Tag: ajung-dropin-registry
	testTextIndex.py 
Log Message:
added numObjects()



--- Updated File testTextIndex.py in package Zope2 --
--- testTextIndex.py	2001/05/17 17:08:51	1.1.2.1
+++ testTextIndex.py	2001/05/21 14:54:37	1.1.2.2
@@ -344,13 +344,17 @@
 
        index=self.dbopen()
 
-       r = index._apply_index({'text':'"This is the time"'})
-       r=list(r[0].keys())
-       assert  r == [0], r
 
+
        r = index._apply_index({'text':'"now is the time"'})
        r=list(r[0].keys())
        assert  r == [], r
+
+       r = index._apply_index({'text':'"This is the time"'})
+       print r
+       r=list(r[0].keys())
+
+       assert  r == [0], r
 
    def checkTextIndexOperatorQuery(self):
        "Check a query with 'textindex_operator' in the request"