[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/translation/tests - test_translate.py:1.1.2.2

Tim Peters tim.one@comcast.net
Tue, 24 Dec 2002 21:21:49 -0500


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

Modified Files:
      Tag: NameGeddon-branch
	test_translate.py 
Log Message:
Whitespace normalization, via Python's Tools/scripts/reindent.py.  The
files are fixed-points of that script now.  Fixed a few cases where
code relied on significant trailing whitespace (ouch).


=== Zope3/src/zope/app/browser/services/translation/tests/test_translate.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/browser/services/translation/tests/test_translate.py:1.1.2.1	Mon Dec 23 14:31:16 2002
+++ Zope3/src/zope/app/browser/services/translation/tests/test_translate.py	Tue Dec 24 21:20:18 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """
 $Id$
@@ -18,8 +18,8 @@
 import unittest
 from StringIO import StringIO
 
-from zope.app.tests.placelesssetup import PlacelessSetup 
-from zope.component.adapter import provideAdapter 
+from zope.app.tests.placelesssetup import PlacelessSetup
+from zope.component.adapter import provideAdapter
 from zope.component.factory import provideFactory
 
 from zope.app.browser.services.translation.translate \
@@ -43,8 +43,8 @@
         # Setup the registries
         provideAdapter(IHTTPRequest, IUserPreferredCharsets, HTTPCharsets)
         provideFactory('Message Catalog', MessageCatalog)
-        
-        service = TranslationService('default') 
+
+        service = TranslationService('default')
 
         en_catalog = MessageCatalog('en', 'default')
         de_catalog = MessageCatalog('de', 'default')
@@ -59,7 +59,7 @@
         service.setObject('de-default-1', de_catalog)
 
         self._view = Translate(service, self._getRequest())
-        
+
 
     def _getRequest(self, **kw):
         request = BrowserRequest(StringIO(''), StringIO(), kw)
@@ -92,7 +92,7 @@
         domains.sort()
         self.assertEqual(domains, ['default'])
 
-        
+
     def testGetEditLanguages(self):
         languages = self._view.getEditLanguages()
         languages.sort()
@@ -107,10 +107,10 @@
 
     # def testEditMessages(self):
     #     pass
-    # 
+    #
     # def testDeleteMessages(self):
     #     pass
-        
+
     def testAddDeleteLanguage(self):
         self._view.addLanguage('es')
         assert 'es' in self._view.getAllLanguages()
@@ -131,4 +131,3 @@
 
 if __name__=='__main__':
     unittest.main()
-