diff --git a/test/db_test_base.py b/test/db_test_base.py
index 0751216a46c98df4eae88c2e58bdebf2aa9c75ea..381b21f48a4b43806b4e3051083159b82c9dc2d0 100644 (file)
--- a/test/db_test_base.py
+++ b/test/db_test_base.py
from roundup.hyperdb import String, Password, Link, Multilink, Date, \
Interval, DatabaseError, Boolean, Number, Node
from roundup.mailer import Mailer
-from roundup import date, password, init, instance, configuration, support
+from roundup import date, password, init, instance, configuration, \
+ roundupdb, i18n
from mocknull import MockNull
"""Creates one issue with two attachments, one smaller and one larger
than the set max_attachment_size.
"""
+ old_translate_ = roundupdb._
+ roundupdb._ = i18n.get_translation(language='C').gettext
db = self.db
db.config.NOSY_MAX_ATTACHMENT_SIZE = 4096
res = dict(mail_to = None, mail_msg = None)
self.assert_("File 'test2.txt' not attached" in mail_msg)
self.assert_(base64.encodestring("yyy").rstrip() not in mail_msg)
finally :
+ roundupdb._ = old_translate_
Mailer.smtp_send = backup
class ROTest(MyTestCase):