[Zope3-checkins] CVS: Zope3/src/zope/i18n/tests - test_itranslationservice.py:1.5.12.1 test_negotiator.py:1.4.10.1 test_translator.py:1.5.10.1 testi18nawareobject.py:1.4.10.1
Grégoire Weber
zope@i-con.ch
Sun, 22 Jun 2003 10:24:15 -0400
Update of /cvs-repository/Zope3/src/zope/i18n/tests
In directory cvs.zope.org:/tmp/cvs-serv24874/src/zope/i18n/tests
Modified Files:
Tag: cw-mail-branch
test_itranslationservice.py test_negotiator.py
test_translator.py testi18nawareobject.py
Log Message:
Synced up with HEAD
=== Zope3/src/zope/i18n/tests/test_itranslationservice.py 1.5 => 1.5.12.1 ===
--- Zope3/src/zope/i18n/tests/test_itranslationservice.py:1.5 Thu Apr 17 16:05:13 2003
+++ Zope3/src/zope/i18n/tests/test_itranslationservice.py Sun Jun 22 10:23:44 2003
@@ -26,11 +26,12 @@
from zope.i18n.interfaces import INegotiator
from zope.i18n.interfaces import IUserPreferredLanguages
from zope.i18n.interfaces import ITranslationService
+from zope.interface import implements
class Environment:
- __implements__ = IUserPreferredLanguages
+ implements(IUserPreferredLanguages)
def __init__(self, langs=()):
self.langs = langs
=== Zope3/src/zope/i18n/tests/test_negotiator.py 1.4 => 1.4.10.1 ===
--- Zope3/src/zope/i18n/tests/test_negotiator.py:1.4 Thu May 1 15:35:43 2003
+++ Zope3/src/zope/i18n/tests/test_negotiator.py Sun Jun 22 10:23:44 2003
@@ -20,9 +20,10 @@
from zope.i18n.negotiator import Negotiator
from zope.i18n.interfaces import IUserPreferredLanguages
from zope.component.tests.placelesssetup import PlacelessSetup
+from zope.interface import implements
class Env:
- __implements__ = IUserPreferredLanguages
+ implements(IUserPreferredLanguages)
def __init__(self, langs=()):
self.langs = langs
=== Zope3/src/zope/i18n/tests/test_translator.py 1.5 => 1.5.10.1 ===
--- Zope3/src/zope/i18n/tests/test_translator.py:1.5 Thu May 1 15:35:43 2003
+++ Zope3/src/zope/i18n/tests/test_translator.py Sun Jun 22 10:23:44 2003
@@ -25,17 +25,18 @@
from zope.i18n.tests.test_globaltranslationservice import testdir
from zope.app.tests.placelesssetup import PlacelessSetup
from zope.component import getService
+from zope.interface import implements
class LocaleIdentityStub:
# Lie -- we're only going to implement part of the interface
- __implements__ = ILocaleIdentity
+ implements(ILocaleIdentity)
def __init__(self, language=None):
self.language = language
class LocaleStub:
# Lie -- we're only going to implement part of the interface
- __implements__ = ILocale
+ implements(ILocale)
def __init__(self, language=None):
self.id = LocaleIdentityStub(language)
=== Zope3/src/zope/i18n/tests/testi18nawareobject.py 1.4 => 1.4.10.1 ===
--- Zope3/src/zope/i18n/tests/testi18nawareobject.py:1.4 Thu May 1 15:35:43 2003
+++ Zope3/src/zope/i18n/tests/testi18nawareobject.py Sun Jun 22 10:23:44 2003
@@ -19,11 +19,12 @@
from zope.i18n.interfaces import II18nAware
from zope.i18n.tests.testii18naware import TestII18nAware
+from zope.interface import implements
class I18nAwareContentObject:
- __implements__ = II18nAware
+ implements(II18nAware)
def __init__(self):
self.content = {}