[Zope3-checkins] CVS: Zope3/src/zope/index/keyword/tests - test_keywordindex.py:1.3
Andreas Jung
andreas@andreas-jung.com
Sat, 2 Aug 2003 02:50:52 -0400
Update of /cvs-repository/Zope3/src/zope/index/keyword/tests
In directory cvs.zope.org:/tmp/cvs-serv27608/keyword/tests
Modified Files:
test_keywordindex.py
Log Message:
improved reindexing efficiency by added/removing only changed
keywords
=== Zope3/src/zope/index/keyword/tests/test_keywordindex.py 1.2 => 1.3 ===
--- Zope3/src/zope/index/keyword/tests/test_keywordindex.py:1.2 Sat Aug 2 02:26:32 2003
+++ Zope3/src/zope/index/keyword/tests/test_keywordindex.py Sat Aug 2 02:50:47 2003
@@ -84,15 +84,14 @@
self.index.unindex_doc(1)
self.index.unindex_doc(2)
self.index.index_doc(1, ('foo', 'bar', 'doom'))
- self.index.index_doc(1, ('foo', 'bar', 'blabla'))
+ self.index.index_doc(1, ('bar', 'blabla'))
self.assertEqual(self.index.documentCount(), 3)
self._search('quick', IISet())
- self._search('foo', IISet([1]))
- self._search('foo', IISet([1]))
+ self._search('foo', IISet())
self._search('bar', IISet([1]))
self._search('doom', IISet())
self._search('blabla', IISet([1]))
- self._search_and(('foo', 'bar'), IISet([1]))
+ self._search_and(('bar', 'blabla'), IISet([1]))
self._search('cmf', IISet([5]))