[Zope-Checkins] CVS: Zope2 - testFieldIndex.py:1.3
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Fri, 1 Jun 2001 14:53:41 -0400
Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/tests
In directory serenade:/tmp/cvs-serv28934/tests
Modified Files:
testFieldIndex.py
Log Message:
- added "query_options" parameter to all index types
- made parseIndexRequest much more smarter in parsing the request parameter
--- Updated File testFieldIndex.py in package Zope2 --
--- testFieldIndex.py 2001/05/30 15:57:36 1.2
+++ testFieldIndex.py 2001/06/01 18:53:40 1.3
@@ -93,7 +93,7 @@
import ZODB
import unittest
-from Products.PluginIndexes.common.UnIndex import UnIndex
+from Products.PluginIndexes.FieldIndex.FieldIndex import FieldIndex
class Dummy:
@@ -116,7 +116,7 @@
def setUp( self ):
"""
"""
- self._index = UnIndex( 'foo' )
+ self._index = FieldIndex( 'foo' )
self._marker = []
self._values = [ ( 0, Dummy( 'a' ) )
, ( 1, Dummy( 'ab' ) )
@@ -229,7 +229,7 @@
def testRange(self):
"""Test a range search"""
- index = UnIndex( 'foo' )
+ index = FieldIndex( 'foo' )
for i in range(100):
index.index_object(i, Dummy(i%10))