[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests -
objecthubsetup.py:1.16 test_interface.py:1.12
test_menu.py:1.7 test_utility.py:1.13
Jim Fulton
jim at zope.com
Fri Mar 5 17:09:51 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/app/services/tests
Modified Files:
objecthubsetup.py test_interface.py test_menu.py
test_utility.py
Log Message:
Renamed interface methods:
isImplementedByInstancesOf to implementedBy
isImplementedBy to providedBy
=== Zope3/src/zope/app/services/tests/objecthubsetup.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/services/tests/objecthubsetup.py:1.15 Wed Mar 3 05:38:53 2004
+++ Zope3/src/zope/app/services/tests/objecthubsetup.py Fri Mar 5 17:09:17 2004
@@ -57,7 +57,7 @@
obj = None
hubid = None
location = canonicalPath(location)
- testcase.assert_(interface.isImplementedBy(event),
+ testcase.assert_(interface.providedBy(event),
'Interface %s' % interface.getName())
testcase.assertEqual(canonicalPath(event.object), location)
@@ -79,7 +79,7 @@
def notify(self, event):
LoggingSubscriber.notify(self, event)
# The policy is to register on object adds and object copies.
- if IObjectAddedEvent.isImplementedBy(event):
+ if IObjectAddedEvent.providedBy(event):
self.hub.register(event.object)
class ObjectHubSetup(EventSetup):
=== Zope3/src/zope/app/services/tests/test_interface.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/services/tests/test_interface.py:1.11 Fri Feb 20 17:02:25 2004
+++ Zope3/src/zope/app/services/tests/test_interface.py Fri Mar 5 17:09:17 2004
@@ -56,7 +56,7 @@
class Foo:
__implements__ = IFoo
- self.assert_(IFoo.isImplementedBy(Foo()))
+ self.assert_(IFoo.providedBy(Foo()))
self.assertEqual(IFoo._p_oid, None)
def test_patch(self):
@@ -67,7 +67,7 @@
# test for a pickling bug
self.assertEqual(imodule.Foo.__implements__, imodule.IFoo)
- self.assert_(imodule.IFoo.isImplementedBy(imodule.aFoo))
+ self.assert_(imodule.IFoo.providedBy(imodule.aFoo))
# the conversion should not affect Interface
self.assert_(imodule.Interface is Interface)
=== Zope3/src/zope/app/services/tests/test_menu.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/services/tests/test_menu.py:1.6 Tue Mar 2 12:40:53 2004
+++ Zope3/src/zope/app/services/tests/test_menu.py Fri Mar 5 17:09:17 2004
@@ -152,7 +152,7 @@
def test_VerifyInterfaceImplementation(self):
- self.assert_(ILocalBrowserMenuService.isImplementedBy(
+ self.assert_(ILocalBrowserMenuService.providedBy(
LocalBrowserMenuService()))
=== Zope3/src/zope/app/services/tests/test_utility.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/services/tests/test_utility.py:1.12 Thu Dec 18 04:57:15 2003
+++ Zope3/src/zope/app/services/tests/test_utility.py Fri Mar 5 17:09:17 2004
@@ -149,7 +149,7 @@
self.assertEqual(utilities.queryRegistrationsFor(registration),
None)
registery = utilities.createRegistrationsFor(registration)
- self.assert_(IRegistrationStack.isImplementedBy(registery))
+ self.assert_(IRegistrationStack.providedBy(registery))
self.assertEqual(utilities.queryRegistrationsFor(registration),
registery)
More information about the Zope3-Checkins
mailing list