[Zope3-checkins] CVS: Zope3/src/zope/i18n/tests - test_itranslationservice.py:1.6 test_negotiator.py:1.5 test_translator.py:1.6 testi18nawareobject.py:1.5

Steve Alexander steve@cat-box.net
Fri, 6 Jun 2003 15:29:41 -0400


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

Modified Files:
	test_itranslationservice.py test_negotiator.py 
	test_translator.py testi18nawareobject.py 
Log Message:
Changed old-style __implements__ to new-style implements()

Also, fixed up some incorrect formatting.


=== Zope3/src/zope/i18n/tests/test_itranslationservice.py 1.5 => 1.6 ===
--- 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	Fri Jun  6 15:29:10 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.5 ===
--- 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	Fri Jun  6 15:29:10 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.6 ===
--- 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	Fri Jun  6 15:29:10 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.5 ===
--- Zope3/src/zope/i18n/tests/testi18nawareobject.py:1.4	Thu May  1 15:35:43 2003
+++ Zope3/src/zope/i18n/tests/testi18nawareobject.py	Fri Jun  6 15:29:10 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 = {}