[Zope3-checkins] CVS: Zope3/src/zope/app/utilities/tests - test_interfaceutility.py:1.8 test_session.py:1.5 test_wrapper.py:1.5

Jim Fulton jim at zope.com
Fri Mar 5 17:09:52 EST 2004


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

Modified Files:
	test_interfaceutility.py test_session.py test_wrapper.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/utilities/tests/test_interfaceutility.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/utilities/tests/test_interfaceutility.py:1.7	Fri Mar  5 10:56:50 2004
+++ Zope3/src/zope/app/utilities/tests/test_interfaceutility.py	Fri Mar  5 17:09:21 2004
@@ -227,7 +227,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)
 


=== Zope3/src/zope/app/utilities/tests/test_session.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/utilities/tests/test_session.py:1.4	Sun Feb 22 20:02:56 2004
+++ Zope3/src/zope/app/utilities/tests/test_session.py	Fri Mar  5 17:09:21 2004
@@ -46,9 +46,9 @@
     >>> id2 = bim.generateUniqueId()
     >>> id1 != id2
     True
-    >>> IBrowserId.isImplementedBy(id1)
+    >>> IBrowserId.providedBy(id1)
     True
-    >>> IBrowserId.isImplementedBy(id2)
+    >>> IBrowserId.providedBy(id2)
     True
 
     CookieBrowserIdManager.getRequestId pulls the IBrowserId from an
@@ -244,11 +244,11 @@
 
     Make sure it returned sane values
 
-    >>> ISession.isImplementedBy(session1)
+    >>> ISession.providedBy(session1)
     True
-    >>> ISession.isImplementedBy(session2)
+    >>> ISession.providedBy(session2)
     True
-    >>> ISession.isImplementedBy(session3)
+    >>> ISession.providedBy(session3)
     True
 
     Make sure that product_ids don't share a namespace


=== Zope3/src/zope/app/utilities/tests/test_wrapper.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/utilities/tests/test_wrapper.py:1.4	Wed Mar  3 16:59:03 2004
+++ Zope3/src/zope/app/utilities/tests/test_wrapper.py	Fri Mar  5 17:09:21 2004
@@ -206,16 +206,16 @@
 
 #     def testInterface(self):
 #         from persistent.interfaces import IPersistent
-#         self.assert_(IPersistent.isImplementedByInstancesOf(Persistent),
+#         self.assert_(IPersistent.implementedBy(Persistent),
 #                      "%s does not implement IPersistent" % Persistent)
 #         p = Persistent()
-#         self.assert_(IPersistent.isImplementedBy(p),
+#         self.assert_(IPersistent.providedBy(p),
 #                      "%s does not implement IPersistent" % p)
 
-#         self.assert_(IPersistent.isImplementedByInstancesOf(Struct),
+#         self.assert_(IPersistent.implementedBy(Struct),
 #                      "%s does not implement IPersistent" % Struct)
 #         p = self.klass()
-#         self.assert_(IPersistent.isImplementedBy(p),
+#         self.assert_(IPersistent.providedBy(p),
 #                      "%s does not implement IPersistent" % p)
 
     def testDataManagerAndAttributes(self):
@@ -340,9 +340,9 @@
 
     def testDirectlyProvides(self):
         p = self.klass()
-        self.failIf(IDummy.isImplementedBy(p))
+        self.failIf(IDummy.providedBy(p))
         directlyProvides(p, directlyProvidedBy(p), IDummy)
-        self.failUnless(IDummy.isImplementedBy(p))
+        self.failUnless(IDummy.providedBy(p))
 
 
 def test_suite():




More information about the Zope3-Checkins mailing list