[Zope3-checkins] CVS: Zope3/src/zope/app/publication/tests - test_zopepublication.py:1.17.6.2

Jim Fulton cvs-admin at zope.org
Tue Nov 18 17:27:03 EST 2003


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

Modified Files:
      Tag: adaptergeddon-branch
	test_zopepublication.py 
Log Message:
Implemented local presentation services.


=== Zope3/src/zope/app/publication/tests/test_zopepublication.py 1.17.6.1 => 1.17.6.2 ===
--- Zope3/src/zope/app/publication/tests/test_zopepublication.py:1.17.6.1	Sun Nov  9 11:08:21 2003
+++ Zope3/src/zope/app/publication/tests/test_zopepublication.py	Tue Nov 18 17:26:32 2003
@@ -22,7 +22,7 @@
 from zodb.storage.mapping import MappingStorage
 
 from zope.app.tests.placelesssetup import PlacelessSetup
-from zope.component.adapter import provideAdapter
+from zope.app.tests import ztapi
 
 from zope.i18n.interfaces import IUserPreferredCharsets
 
@@ -55,7 +55,7 @@
 
     def setUp(self):
         PlacelessSetup.setUp(self)
-        provideAdapter(IHTTPRequest, IUserPreferredCharsets, HTTPCharsets)
+        ztapi.provideAdapter(IHTTPRequest, IUserPreferredCharsets, HTTPCharsets)
         self.policy = setSecurityPolicy(
             simplepolicies.PermissiveSecurityPolicy()
             )
@@ -246,7 +246,7 @@
         class IConflictError(Interface):
             pass
         classImplements(ConflictError, IConflictError)
-        provideAdapter(IConflictError, IExceptionSideEffects, factory)
+        ztapi.provideAdapter(IConflictError, IExceptionSideEffects, factory)
         exception = ConflictError()
         try:
             raise exception




More information about the Zope3-Checkins mailing list