[Zope3-checkins] CVS: Zope3/src/zope/index/keyword/tests - test_keywordindex.py:1.2

Andreas Jung andreas@andreas-jung.com
Sat, 2 Aug 2003 02:26:36 -0400


Update of /cvs-repository/Zope3/src/zope/index/keyword/tests
In directory cvs.zope.org:/tmp/cvs-serv24012/tests

Modified Files:
	test_keywordindex.py 
Log Message:
improved tests for reindexing


=== Zope3/src/zope/index/keyword/tests/test_keywordindex.py 1.1 => 1.2 ===
--- Zope3/src/zope/index/keyword/tests/test_keywordindex.py:1.1	Tue Jul 15 12:07:46 2003
+++ Zope3/src/zope/index/keyword/tests/test_keywordindex.py	Sat Aug  2 02:26:32 2003
@@ -83,12 +83,15 @@
         self.assertEqual(self.index.documentCount(), 4)
         self.index.unindex_doc(1)
         self.index.unindex_doc(2)
-        self.index.index_doc(1,  ('foo', 'bar'))
+        self.index.index_doc(1,  ('foo', 'bar', 'doom'))
+        self.index.index_doc(1,  ('foo', 'bar', 'blabla'))
         self.assertEqual(self.index.documentCount(), 3)
         self._search('quick',   IISet())
         self._search('foo',   IISet([1]))
         self._search('foo',   IISet([1]))
         self._search('bar',   IISet([1]))
+        self._search('doom',   IISet())
+        self._search('blabla',   IISet([1]))
         self._search_and(('foo', 'bar'),   IISet([1]))
         self._search('cmf',   IISet([5]))