[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/tests - testZopePublication.py:1.1.2.5

Fred Drake Jr fdrake@acm.org
Wed, 12 Dec 2001 15:41:02 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/tests
In directory cvs.zope.org:/tmp/cvs-serv15563/Zope/App/ZopePublication/tests

Modified Files:
      Tag: Zope-3x-branch
	testZopePublication.py 
Log Message:
Presentation --> View

=== Zope3/lib/python/Zope/App/ZopePublication/tests/testZopePublication.py 1.1.2.4 => 1.1.2.5 ===
     def browser_default(self, request):
         return self, ['bruce']
-    
+
 class BasePublicationTests(unittest.TestCase):
     def setUp(self):
         self.policy = setSecurityPolicy(
@@ -63,7 +63,7 @@
 
 class ZopePublicationTests(BasePublicationTests):
     klass = ZopePublication
-    
+
 class BrowserPublicationTests(BasePublicationTests):
     klass = BrowserPublication
     def testNativeTraverseNameWrapping(self):
@@ -80,19 +80,19 @@
 
         class mydict(dict):
             __implements__ = I1
-            
+
         class Adapter:
             __implements__ = IBrowserPublisher
             def __init__(self, context):
                 self.context = context
                 self.counter = 0
-                
+
             def browser_traverse(self, request, name):
                 self.counter+=1
                 return self.context[name]
 
-        from Zope.ComponentArchitecture import providePresentation
-        providePresentation(I1, '_traverse', IBrowserPublisher, Adapter)
+        from Zope.ComponentArchitecture import provideView
+        provideView(I1, '_traverse', IBrowserPublisher, Adapter)
         ob = mydict()
         ob['bruce'] =  'bruce'
         ob['bruce2'] =  'bruce2'
@@ -109,17 +109,17 @@
 
         class mydict(dict):
             __implements__ = I1
-            
+
         class Adapter:
             __implements__ = IBrowserPublisher
             def __init__(self, context):
                 self.context = context
-                
+
             def browser_default(self, request):
                 return (self.context['bruce'], 'dummy')
 
-        from Zope.ComponentArchitecture import providePresentation
-        providePresentation(I1, '_traverse', IBrowserPublisher, Adapter)
+        from Zope.ComponentArchitecture import provideView
+        provideView(I1, '_traverse', IBrowserPublisher, Adapter)
         ob = mydict()
         ob['bruce'] =  'bruce'
         ob['bruce2'] =  'bruce2'