diff --git a/test/test_mailgw.py b/test/test_mailgw.py
index b4a8f95c56514bf4760af55a120660b86370298b..600bc81fdc2c350a5f4fb74c3ac1baa426b261d3 100644 (file)
--- a/test/test_mailgw.py
+++ b/test/test_mailgw.py
os.environ['SENDMAILDEBUG'] = 'mail-test.log'
SENDMAILDEBUG = os.environ['SENDMAILDEBUG']
+from roundup import mailgw, i18n, roundupdb
from roundup.mailgw import MailGW, Unauthorized, uidFromAddress, \
parseContent, IgnoreLoop, IgnoreBulk, MailUsageError, MailUsageHelp
from roundup import init, instance, password, rfc2822, __version__
count = 0
schema = 'classic'
def setUp(self):
+ self.old_translate_ = mailgw._
+ roundupdb._ = mailgw._ = i18n.get_translation(language='C').gettext
MailgwTestCase.count = MailgwTestCase.count + 1
# and open the database / "instance"
address='rgg@test.test', roles='User')
def tearDown(self):
+ roundupdb._ = mailgw._ = self.old_translate_
if os.path.exists(SENDMAILDEBUG):
os.remove(SENDMAILDEBUG)
self.db.close()