[Zope3-checkins] CVS: Zope3/src/zope/index/topic/tests - test_topicindex.py:1.2

Andreas Jung andreas@andreas-jung.com
Wed, 16 Jul 2003 13:16:10 -0400


Update of /cvs-repository/Zope3/src/zope/index/topic/tests
In directory cvs.zope.org:/tmp/cvs-serv15737/tests

Modified Files:
	test_topicindex.py 
Log Message:
changed ifaces tests

=== Zope3/src/zope/index/topic/tests/test_topicindex.py 1.1 => 1.2 ===
--- Zope3/src/zope/index/topic/tests/test_topicindex.py:1.1	Wed Jul 16 13:06:03 2003
+++ Zope3/src/zope/index/topic/tests/test_topicindex.py	Wed Jul 16 13:16:05 2003
@@ -18,8 +18,10 @@
 from zope.index.topic.index import TopicIndex
 from zope.index.topic.filter import PythonFilter
 from zope.interface.verify import verifyClass
+from zope.interface.interface import implementedBy
 
-from zope.index.interfaces import ITopicFilter
+
+from zope.index.interfaces import ITopicFilter, IInjection
 
 class O:
     """ a dummy class """
@@ -55,7 +57,12 @@
         return self._search(query, expected, 'and')
 
     def testInterfaces(self):
-        verifyClass(ITopicFilter, PythonFilter)
+
+        for iface in implementedBy(PythonFilter):
+            verifyClass(iface, PythonFilter)
+
+        for iface in implementedBy(TopicIndex):
+            verifyClass(iface, TopicIndex)
 
     def testOr(self):
         self._search_or('doc1',  [1,2])