[Zope3-checkins] CVS: Zope3/src/zope/app/services/translation/tests - test_gettextexportimport.py:1.1.2.3 test_messagecatalog.py:1.1.2.2 test_translationservice.py:1.1.2.2
Tim Peters
tim.one@comcast.net
Tue, 24 Dec 2002 21:21:51 -0500
Update of /cvs-repository/Zope3/src/zope/app/services/translation/tests
In directory cvs.zope.org:/tmp/cvs-serv19240/src/zope/app/services/translation/tests
Modified Files:
Tag: NameGeddon-branch
test_gettextexportimport.py test_messagecatalog.py
test_translationservice.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/services/translation/tests/test_gettextexportimport.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/services/translation/tests/test_gettextexportimport.py:1.1.2.2 Tue Dec 24 07:51:19 2002
+++ Zope3/src/zope/app/services/translation/tests/test_gettextexportimport.py Tue Dec 24 21:20:51 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.
-#
+#
##############################################################################
"""This module tests the Gettext Export and Import funciotnality of the
Translation Service.
@@ -26,7 +26,7 @@
from zope.app.component.metaconfigure import handler
from zope.app.services.translation.messagecatalog import \
- MessageCatalog
+ MessageCatalog
from zope.i18n.negotiator import negotiator
from zope.interfaces.i18n import INegotiator
from zope.interfaces.i18n import IUserPreferredLanguages
@@ -60,7 +60,7 @@
"PO-Revision-Date: %s\\n"
"Last-Translator: Zope 3 Gettext Export Filter\\n"
"Zope-Language: de\\n"
-"Zope-Domain: default\\n"
+"Zope-Domain: default\\n"
"MIME-Version: 1.0\\n"
"Content-Type: text/plain; charset=UTF-8\\n"
"Content-Transfer-Encoding: 8bit\\n"
@@ -75,9 +75,9 @@
def setUp(self):
PlacelessSetup.setUp(self)
# Setup the negotiator service registry entry
- managerHandler('defineService', 'LanguageNegotiation', INegotiator)
+ managerHandler('defineService', 'LanguageNegotiation', INegotiator)
provideService('LanguageNegotiation', negotiator, 'zope.Public')
- self._service = TranslationService('default')
+ self._service = TranslationService('default')
handler('Factories', 'provideFactory', 'Message Catalog',
MessageCatalog)
@@ -91,7 +91,7 @@
exp = GettextExportFilter(service)
result = exp.exportMessages(['default'], ['de'])
-
+
dt = time.time()
dt = time.localtime(dt)
dt = time.strftime('%Y/%m/%d %H:%M', dt)
@@ -106,4 +106,3 @@
if __name__ == '__main__':
unittest.TextTestRunner().run(test_suite())
-
=== Zope3/src/zope/app/services/translation/tests/test_messagecatalog.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/services/translation/tests/test_messagecatalog.py:1.1.2.1 Mon Dec 23 14:32:29 2002
+++ Zope3/src/zope/app/services/translation/tests/test_messagecatalog.py Tue Dec 24 21:20:51 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.
-#
+#
##############################################################################
"""Test the generic persistent Message Catalog.
@@ -36,7 +36,7 @@
catalog.setMessage('short_greeting', 'Hello!', 0)
catalog.setMessage('greeting', 'Hello $name, how are you?', 0)
return catalog
-
+
def _getUniqueIndentifier(self):
return ('en', 'default')
=== Zope3/src/zope/app/services/translation/tests/test_translationservice.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/services/translation/tests/test_translationservice.py:1.1.2.1 Mon Dec 23 14:32:29 2002
+++ Zope3/src/zope/app/services/translation/tests/test_translationservice.py Tue Dec 24 21:20:51 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.
-#
+#
##############################################################################
"""This module tests the regular persistent Translation Service.
@@ -22,7 +22,7 @@
from zope.app.services.translation.translationservice import \
TranslationService
from zope.app.services.translation.messagecatalog import \
- MessageCatalog
+ MessageCatalog
from zope.i18n.tests.test_ireadtranslationservice import \
TestIReadTranslationService
from zope.i18n.tests.test_iwritetranslationservice import \
@@ -45,7 +45,7 @@
def _getTranslationService(self):
- service = TranslationService('default')
+ service = TranslationService('default')
en_catalog = MessageCatalog('en', 'default')
de_catalog = MessageCatalog('de', 'default')