[Zope3-checkins] CVS: Zope3/src/zope/publisher/tests - test_http.py:1.23 test_publisher.py:1.6 test_xmlrpcmethodpublisher.py:1.6

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


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

Modified Files:
	test_http.py test_publisher.py test_xmlrpcmethodpublisher.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/publisher/tests/test_http.py 1.22 => 1.23 ===
--- Zope3/src/zope/publisher/tests/test_http.py:1.22	Thu Feb  5 17:52:36 2004
+++ Zope3/src/zope/publisher/tests/test_http.py	Fri Mar  5 17:09:30 2004
@@ -145,7 +145,7 @@
         for httplang in ('it', 'it-ch', 'it-CH', 'IT', 'IT-CH', 'IT-ch'):
             req = self._createRequest({'HTTP_ACCEPT_LANGUAGE': httplang})
             locale = req.locale
-            unless(ILocale.isImplementedBy(locale))
+            unless(ILocale.providedBy(locale))
             parts = httplang.split('-')
             lang = parts.pop(0).lower()
             territory = variant = None
@@ -159,7 +159,7 @@
         # Now test for non-existant locale fallback
         req = self._createRequest({'HTTP_ACCEPT_LANGUAGE': 'xx'})
         locale = req.locale
-        unless(ILocale.isImplementedBy(locale))
+        unless(ILocale.providedBy(locale))
         eq(locale.id.language, None)
         eq(locale.id.territory, None)
         eq(locale.id.variant, None)
@@ -167,7 +167,7 @@
         # If the first language is not available we should try others
         req = self._createRequest({'HTTP_ACCEPT_LANGUAGE': 'xx,en;q=0.5'})
         locale = req.locale
-        unless(ILocale.isImplementedBy(locale))
+        unless(ILocale.providedBy(locale))
         eq(locale.id.language, 'en')
         eq(locale.id.territory, None)
         eq(locale.id.variant, None)
@@ -176,7 +176,7 @@
         # not reset
         req = self._createRequest({'HTTP_ACCEPT_LANGUAGE': 'xx-YY,en;q=0.5'})
         locale = req.locale
-        unless(ILocale.isImplementedBy(locale))
+        unless(ILocale.providedBy(locale))
         eq(locale.id.language, 'en')
         eq(locale.id.territory, None)
         eq(locale.id.variant, None)


=== Zope3/src/zope/publisher/tests/test_publisher.py 1.5 => 1.6 ===
--- Zope3/src/zope/publisher/tests/test_publisher.py:1.5	Sat Jun  7 02:54:25 2003
+++ Zope3/src/zope/publisher/tests/test_publisher.py	Fri Mar  5 17:09:30 2004
@@ -76,7 +76,7 @@
         return outstream.getvalue()
 
     def testImplementsIPublication(self):
-        self.failUnless(IPublication.isImplementedBy(
+        self.failUnless(IPublication.providedBy(
                             DefaultPublication(self.app)))
 
     def testInterfacesVerify(self):


=== Zope3/src/zope/publisher/tests/test_xmlrpcmethodpublisher.py 1.5 => 1.6 ===
--- Zope3/src/zope/publisher/tests/test_xmlrpcmethodpublisher.py:1.5	Sat Jun  7 02:54:25 2003
+++ Zope3/src/zope/publisher/tests/test_xmlrpcmethodpublisher.py	Fri Mar  5 17:09:30 2004
@@ -33,7 +33,7 @@
         self.pres = Presentation(ContentStub(), TestRequest())
 
     def testImplementsIXMLRPCPublisher(self):
-        self.failUnless(IXMLRPCPublisher.isImplementedBy(self.pres))
+        self.failUnless(IXMLRPCPublisher.providedBy(self.pres))
 
     def testInterfacesVerify(self):
         for interface in implementedBy(Presentation):




More information about the Zope3-Checkins mailing list