summaryrefslogtreecommitdiff
path: root/src/zope/i18n/tests/test_itranslationdomain.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/i18n/tests/test_itranslationdomain.py')
-rw-r--r--src/zope/i18n/tests/test_itranslationdomain.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zope/i18n/tests/test_itranslationdomain.py b/src/zope/i18n/tests/test_itranslationdomain.py
index 79c385f..85e4c6a 100644
--- a/src/zope/i18n/tests/test_itranslationdomain.py
+++ b/src/zope/i18n/tests/test_itranslationdomain.py
@@ -28,16 +28,17 @@ from zope.i18n.interfaces import ITranslationDomain
text_type = str if bytes is not str else unicode
+
@implementer(IUserPreferredLanguages)
class Environment(object):
-
def __init__(self, langs=()):
self.langs = langs
def getPreferredLanguages(self):
return self.langs
+
class TestITranslationDomain(PlacelessSetup):
# This should be overwritten by every class that inherits this test
@@ -108,4 +109,4 @@ class TestITranslationDomain(PlacelessSetup):
def test_suite():
- return unittest.TestSuite() # Deliberately empty
+ return unittest.TestSuite() # Deliberately empty