[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests - test_contentdirective.py:1.14 test_directives.py:1.24 test_servicemanagercontainer.py:1.10

Jim Fulton jim at zope.com
Fri Mar 5 17:10:00 EST 2004


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

Modified Files:
	test_contentdirective.py test_directives.py 
	test_servicemanagercontainer.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/component/tests/test_contentdirective.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/component/tests/test_contentdirective.py:1.13	Fri Mar  5 10:53:50 2004
+++ Zope3/src/zope/app/component/tests/test_contentdirective.py	Fri Mar  5 17:08:59 2004
@@ -75,7 +75,7 @@
 </content>
                        """)
         xmlconfig(f)
-        self.failUnless(IExample.isImplementedByInstancesOf(ExampleClass))
+        self.failUnless(IExample.implementedBy(ExampleClass))
 
         self.assertEqual(queryInterface( 
             "zope.app.component.tests.exampleclass.IExample"), IExample)
@@ -96,8 +96,8 @@
 </content>
                        """)
         xmlconfig(f)
-        self.failUnless(IExample.isImplementedByInstancesOf(ExampleClass))
-        self.failUnless(IExample2.isImplementedByInstancesOf(ExampleClass))
+        self.failUnless(IExample.implementedBy(ExampleClass))
+        self.failUnless(IExample2.implementedBy(ExampleClass))
 
         self.assertEqual(queryInterface(
             "zope.app.component.tests.exampleclass.IExample"), IExample)


=== Zope3/src/zope/app/component/tests/test_directives.py 1.23 => 1.24 ===
--- Zope3/src/zope/app/component/tests/test_directives.py:1.23	Fri Mar  5 10:53:50 2004
+++ Zope3/src/zope/app/component/tests/test_directives.py	Fri Mar  5 17:08:59 2004
@@ -67,7 +67,7 @@
     >>> context = Context()
     >>> class I(Interface):
     ...     pass
-    >>> IContentType.isImplementedBy(I)
+    >>> IContentType.providedBy(I)
     False
     >>> interface(context, I, IContentType)
     >>> context
@@ -79,7 +79,7 @@
     >>> from zope.interface.interfaces import IInterface
     >>> IContentType.extends(IInterface)
     True
-    >>> IInterface.isImplementedBy(I)
+    >>> IInterface.providedBy(I)
     True
     """
 


=== Zope3/src/zope/app/component/tests/test_servicemanagercontainer.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/component/tests/test_servicemanagercontainer.py:1.9	Tue Feb 10 20:14:01 2004
+++ Zope3/src/zope/app/component/tests/test_servicemanagercontainer.py	Fri Mar  5 17:08:59 2004
@@ -59,10 +59,10 @@
 
     def test_get_and_set(self):
         smc = self.makeTestObject()
-        self.failIf(ISite.isImplementedBy(smc))
+        self.failIf(ISite.providedBy(smc))
         sm = ServiceManager()
         smc.setSiteManager(sm)
-        self.failUnless(ISite.isImplementedBy(smc))
+        self.failUnless(ISite.providedBy(smc))
         self.failUnless(smc.getSiteManager() is sm)
         verifyObject(ISite, smc)
 




More information about the Zope3-Checkins mailing list