[Zope-Checkins]
CVS: Zope/lib/python/Products/PluginIndexes/KeywordIndex/tests
- testKeywordIndex.py:1.7
Casey Duncan
casey at zope.com
Fri Apr 23 11:48:04 EDT 2004
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/KeywordIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv5040/KeywordIndex/tests
Modified Files:
testKeywordIndex.py
Log Message:
Port performance fix for UnIndex.numObjects()
=== Zope/lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py 1.6 => 1.7 ===
--- Zope/lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py:1.6 Fri Feb 28 10:51:34 2003
+++ Zope/lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py Fri Apr 23 11:47:33 2004
@@ -114,6 +114,7 @@
def testEmpty( self ):
assert len( self._index ) == 0
assert len( self._index.referencedObjects() ) == 0
+ self.assertEqual(self._index.numObjects(), 0)
assert self._index.getEntryForObject( 1234 ) is None
assert ( self._index.getEntryForObject( 1234, self._marker )
@@ -141,6 +142,7 @@
assert ( self._index.getEntryForObject( 1234, self._marker )
is self._marker )
self._index.unindex_object( 1234 ) # nothrow
+ self.assertEqual(self._index.numObjects(), len( values )-1)
for k, v in values:
entry = self._index.getEntryForObject( k )
More information about the Zope-Checkins
mailing list