[Zope-Checkins]
SVN: Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/
numObjects() -> indexSize()
Andreas Jung
andreas at andreas-jung.com
Mon Jan 31 14:27:40 EST 2005
Log message for revision 28999:
numObjects() -> indexSize()
Changed:
U Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py
U Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py
-=-
Modified: Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py
===================================================================
--- Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py 2005-01-31 19:09:25 UTC (rev 28998)
+++ Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py 2005-01-31 19:27:40 UTC (rev 28999)
@@ -116,7 +116,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)
+ self.assertEqual(self._index.indexSize(), len( values )-1)
assert self._index.getEntryForObject( 1234 ) is None
assert ( self._index.getEntryForObject( 1234, self._marker )
Modified: Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py
===================================================================
--- Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py 2005-01-31 19:09:25 UTC (rev 28998)
+++ Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/KeywordIndex/tests/testKeywordIndex.py 2005-01-31 19:27:40 UTC (rev 28999)
@@ -142,7 +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)
+ self.assertEqual(self._index.indexSize(), len( values )-1)
for k, v in values:
entry = self._index.getEntryForObject( k )
More information about the Zope-Checkins
mailing list