[Zope3-checkins] CVS: Zope3/src/zope/app/i18n/tests - placelesssetup.py:1.3.20.1

Sidnei da Silva sidnei at x3ng.com.br
Mon Mar 1 07:16:29 EST 2004


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

Modified Files:
      Tag: runyaga-sip-branch
	placelesssetup.py 
Log Message:
Merge srichter's fixes to my branch.


=== Zope3/src/zope/app/i18n/tests/placelesssetup.py 1.3 => 1.3.20.1 ===
--- Zope3/src/zope/app/i18n/tests/placelesssetup.py:1.3	Fri Nov 21 12:12:06 2003
+++ Zope3/src/zope/app/i18n/tests/placelesssetup.py	Mon Mar  1 07:15:57 2004
@@ -13,10 +13,8 @@
 ##############################################################################
 """Unit test logic for setting up and tearing down basic infrastructure
 
-
 $Id$
 """
-
 from zope.app.services.servicenames import Translation
 from zope.app.tests import ztapi
 from zope.component import getServiceManager
@@ -25,18 +23,15 @@
 from zope.i18n.interfaces import IUserPreferredCharsets
 from zope.i18n.interfaces import IUserPreferredLanguages
 from zope.publisher.browser import BrowserLanguages
-from zope.publisher.http import HTTPCharsets
-from zope.publisher.http import IHTTPRequest
+from zope.publisher.http import HTTPCharsets, IHTTPRequest
 
 class PlacelessSetup:
 
     def setUp(self):
         sm = getServiceManager(None)
-        defineService = sm.defineService
-        provideService = sm.provideService
 
-        defineService(Translation, ITranslationService)
-        provideService(Translation, translationService)
+        sm.defineService(Translation, ITranslationService)
+        sm.provideService(Translation, translationService)
 
         ztapi.provideAdapter(IHTTPRequest, IUserPreferredCharsets,
                              HTTPCharsets)




More information about the Zope3-Checkins mailing list