[Zope-CVS] CVS: Products/ZCTextIndex/tests - testZCTextIndex.py:1.19

Tim Peters tim.one@comcast.net
Fri, 17 May 2002 04:02:02 -0400


Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv5731/tests

Modified Files:
	testZCTextIndex.py 
Log Message:
Implement correct (albeit inefficient) reindexing, and stop cheating
in the reindexing text.


=== Products/ZCTextIndex/tests/testZCTextIndex.py 1.18 => 1.19 ===
 
     def testDocUpdate(self):
-        docid = 1
+        docid = 1   # doesn't change -- we index the same doc repeatedly
         N = len(text)
         stop = get_stopdict()
 
@@ -131,9 +131,6 @@
                 for w in v:
                     nbest, total = self.zc_index.query(w)
                     self.assertEqual(total, 0, "did not expect to find %s" % w)
-            # XXX The next line is necessary because we're not yet reindexing
-            # XXX docs correctly.
-            self.zc_index.unindex_object(docid)
 
 class CosineIndexTests(ZCIndexTestsBase, testIndex.CosineIndexTest):