diff options
Diffstat (limited to 'service/test')
-rw-r--r-- | service/test/unit/adapter/mail_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/unit/adapter/mail_test.py b/service/test/unit/adapter/mail_test.py index 5c83bd03..13eef91e 100644 --- a/service/test/unit/adapter/mail_test.py +++ b/service/test/unit/adapter/mail_test.py @@ -171,8 +171,8 @@ class TestPixelatedMail(unittest.TestCase): mail.raw def test_that_body_understands_base64(self): - body = "bl\xe1" - encoded_body = base64.b64encode(body) + body = u'bl\xe1' + encoded_body = unicode(base64.b64encode(body.encode('utf-8'))) fdoc, hdoc, bdoc = test_helper.leap_mail() parts = {'alternatives': []} |