[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/utility/tests - test_registered.py:1.3.14.1

Jim Fulton cvs-admin at zope.org
Sun Nov 9 11:08:41 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/services/utility/tests
In directory cvs.zope.org:/tmp/cvs-serv15349/src/zope/app/browser/services/utility/tests

Modified Files:
      Tag: adaptergeddon-branch
	test_registered.py 
Log Message:
Created a global presentation service that replaces the 
global view, resource, and skin services.

Now look up presentation components by adapting from a request type,
rather than adapting to a presentation type.





=== Zope3/src/zope/app/browser/services/utility/tests/test_registered.py 1.3 => 1.3.14.1 ===
--- Zope3/src/zope/app/browser/services/utility/tests/test_registered.py:1.3	Thu Aug  7 13:41:42 2003
+++ Zope3/src/zope/app/browser/services/utility/tests/test_registered.py	Sun Nov  9 11:08:10 2003
@@ -15,11 +15,11 @@
 
 import unittest
 
+from zope.app.tests import ztapi
 from zope.app.browser.services.utility import Utilities
 from zope.app.tests import placelesssetup
-from zope.component.view import provideView
 from zope.interface import Interface, implements
-from zope.publisher.browser import BrowserView, IBrowserPresentation
+from zope.publisher.browser import BrowserView
 from zope.publisher.browser import TestRequest
 
 
@@ -85,10 +85,9 @@
 class RegisteredTest(placelesssetup.PlacelessSetup, unittest.TestCase):
 
     def test_utility(self):
-        provideView(IStub,
-                    "absolute_url",
-                    IBrowserPresentation,
-                    StubAbsoluteURL)
+        ztapi.browserView(IStub,
+                          "absolute_url",
+                          StubAbsoluteURL)
         utilityservice = StubLocalUtilityService()
         request = TestRequest()
         utilities = UtilitiesView(utilityservice, request)




More information about the Zope3-Checkins mailing list