[Zope3-checkins] CVS: Zope3/src/zope/fieldindex/tests - test_fieldindex.py:1.4

Andreas Jung andreas@andreas-jung.com
Wed, 26 Mar 2003 10:46:29 -0500


Update of /cvs-repository/Zope3/src/zope/fieldindex/tests
In directory cvs.zope.org:/tmp/cvs-serv29236/tests

Modified Files:
	test_fieldindex.py 
Log Message:
fixed problem when a document has been recataloged (raised by
ObjectHub). added test to check for this error


=== Zope3/src/zope/fieldindex/tests/test_fieldindex.py 1.3 => 1.4 ===
--- Zope3/src/zope/fieldindex/tests/test_fieldindex.py:1.3	Wed Mar 26 05:58:56 2003
+++ Zope3/src/zope/fieldindex/tests/test_fieldindex.py	Wed Mar 26 10:46:29 2003
@@ -80,6 +80,15 @@
         self._search('sucks', IISet([]))
 
 
+    def test_reindexdoc(self):
+
+        self._populate_index()
+        self.index.index_doc(1, "zope3")
+
+        self._search('the', IISet())
+        self._search('zope3', IISet([1]))
+
+
     def test_unindexdoc(self):
 
         self._populate_index()