[Zope-Checkins]
CVS: Zope/lib/python/Products/PluginIndexes/FieldIndex/tests
- testFieldIndex.py:1.6.6.1
Casey Duncan
casey at zope.com
Fri Apr 23 10:50:56 EDT 2004
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/FieldIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv25935/lib/python/Products/PluginIndexes/FieldIndex/tests
Modified Files:
Tag: Zope-2_6-branch
testFieldIndex.py
Log Message:
Backport performace fix for index numObjects(), which should cure the slowness of the Indexes tab for large ZCatalogs
=== Zope/lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py 1.6 => 1.6.6.1 ===
--- Zope/lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py:1.6 Wed Aug 14 18:19:29 2002
+++ Zope/lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py Fri Apr 23 10:50:24 2004
@@ -93,6 +93,7 @@
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 )
@@ -116,6 +117,7 @@
assert len( self._index ) == len( values )-1 #'abce' is duplicate
assert len( self._index.referencedObjects() ) == len( values )
+ self.assertEqual(self._index.numObjects(), len( values )-1)
assert self._index.getEntryForObject( 1234 ) is None
assert ( self._index.getEntryForObject( 1234, self._marker )
More information about the Zope-Checkins
mailing list