aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_membership.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/test_membership.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_membership.py b/tests/test_membership.py
index 8ffda18b..eca57862 100644
--- a/tests/test_membership.py
+++ b/tests/test_membership.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2003 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2010 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -20,6 +20,10 @@
import os
import time
import unittest
+try:
+ from Mailman import __init__
+except ImportError:
+ import paths
from Mailman import mm_cfg
from Mailman import Utils
@@ -196,6 +200,7 @@ class TestMembers(TestBase):
def test_set_language(self):
self._mlist.available_languages.append('xx')
+ mm_cfg.LC_DESCRIPTIONS.setdefault('xx', 0)
self._mlist.setMemberLanguage('person@dom.ain', 'xx')
self.assertEqual(self._mlist.getMemberLanguage('person@dom.ain'), 'xx')