[Zope3-checkins] CVS: Zope3/src/zope/fieldindex/tests - test_fieldindex.py:1.8

Andy Hird andyh@ekit-inc.com
Sun, 13 Jul 2003 01:51:46 -0400


Update of /cvs-repository/Zope3/src/zope/fieldindex/tests
In directory cvs.zope.org:/tmp/cvs-serv24050/src/zope/fieldindex/tests

Modified Files:
	test_fieldindex.py 
Log Message:
Index-Interface-Geddon. Moving all the index interfaces to 
zope.index.interfaces

As part of this we removed several duplicate interfaces and cleaned up
some existing ones. Most users of index interfaces should only need
zope.index.interfaces.index


=== Zope3/src/zope/fieldindex/tests/test_fieldindex.py 1.7 => 1.8 ===
--- Zope3/src/zope/fieldindex/tests/test_fieldindex.py:1.7	Mon Mar 31 11:43:57 2003
+++ Zope3/src/zope/fieldindex/tests/test_fieldindex.py	Sun Jul 13 01:51:12 2003
@@ -16,9 +16,12 @@
 
 from zodb.btrees.IIBTree import IISet
 from zope.fieldindex.fieldindex import FieldIndex
-from zope.fieldindex.ifieldindex import IFieldIndex
 from zope.interface.verify import verifyClass
 
+from zope.index.interfaces.index import IInjection, IQuerying, IStatistics, \
+    IRangeQuerying
+
+
 class FieldIndexTest(TestCase):
 
     def setUp(self):
@@ -53,7 +56,10 @@
 
 
     def test_interface(self):
-        verifyClass(IFieldIndex, FieldIndex)
+        verifyClass(IRangeQuerying, FieldIndex)
+        verifyClass(IInjection, FieldIndex)
+        verifyClass(IQuerying, FieldIndex)
+        verifyClass(IStatistics, FieldIndex)
 
     def test_empty_index(self):
         self.assertEqual(self.index.documentCount(), 0)