[Zope3-checkins] CVS: Zope3/src/zope/app/traversing/tests - test_traverser.py:1.12

Steve Alexander steve@cat-box.net
Sat, 7 Jun 2003 02:54:55 -0400


Update of /cvs-repository/Zope3/src/zope/app/traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv6903/src/zope/app/traversing/tests

Modified Files:
	test_traverser.py 
Log Message:
Removed use of old "from zope.interface.implements ..." api.


=== Zope3/src/zope/app/traversing/tests/test_traverser.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/traversing/tests/test_traverser.py:1.11	Sun Jun  1 11:59:38 2003
+++ Zope3/src/zope/app/traversing/tests/test_traverser.py	Sat Jun  7 02:54:24 2003
@@ -20,7 +20,7 @@
 
 from zope.interface import directlyProvides
 from zope.interface.verify import verifyClass
-from zope.interface.implements import instancesOfObjectImplements
+from zope.interface import implementedBy
 
 from zope.app.interfaces.traversing import ITraverser, ITraversable
 from zope.app.traversing.adapters import Traverser, DefaultTraversable
@@ -58,7 +58,7 @@
         self.failUnless(ITraverser.isImplementedBy(self.tr))
 
     def testVerifyInterfaces(self):
-        for interface in instancesOfObjectImplements(Traverser):
+        for interface in implementedBy(Traverser):
             verifyClass(interface, Traverser)
 
 class UnrestrictedNoTraverseTests(unittest.TestCase):
@@ -201,7 +201,7 @@
         self.failUnless(ITraversable.isImplementedBy(DefaultTraversable(None)))
 
     def testVerifyInterfaces(self):
-        for interface in instancesOfObjectImplements(DefaultTraversable):
+        for interface in implementedBy(DefaultTraversable):
             verifyClass(interface, DefaultTraversable)
 
     def testAttributeTraverse(self):