[Zope-Checkins] CVS: Zope2 - testPathIndex.py:1.1.2.9
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Mon, 21 May 2001 09:09:45 -0400
Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/tests
In directory serenade:/tmp/cvs-serv13037/tests
Modified Files:
Tag: ajung-dropin-registry
testPathIndex.py
Log Message:
added unindexing test
--- Updated File testPathIndex.py in package Zope2 --
--- testPathIndex.py 2001/05/18 18:45:41 1.1.2.8
+++ testPathIndex.py 2001/05/21 13:09:45 1.1.2.9
@@ -158,6 +158,18 @@
self._index.unindex_object( 1234 ) # nothrow
assert self._index._apply_index( {"path":"xxx"} ) is None
+
+ def testUnIndex( self ):
+ "Test to UnIndex PathIndex."
+
+ self._populateIndex()
+
+ for k in self._values.keys():
+ self._index.unindex_object(k)
+
+ assert len(self._index._index)==0
+ assert len(self._index._unindex)==0
+
def testPopulateIndex( self ):