From 0329b242c851ea1f05e795102638b01bbac7c231 Mon Sep 17 00:00:00 2001 From: NavaL Date: Wed, 19 Oct 2016 15:23:17 +0200 Subject: [feat] leap.mail: expose content charset as a separated attribute Before we used to have content_doc.content_type = 'text/plain; charset="utf-8"'. Currently, we have content_doc.content_type = 'text/plain'. This change will give us, on top of that: content_doc.charset = 'utf-8'. One can reconstruct the original one using .content_type and .charset. --- tests/integration/mail/adaptors/test_soledad_adaptor.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/integration') diff --git a/tests/integration/mail/adaptors/test_soledad_adaptor.py b/tests/integration/mail/adaptors/test_soledad_adaptor.py index 8d2ebb5..72b0be8 100644 --- a/tests/integration/mail/adaptors/test_soledad_adaptor.py +++ b/tests/integration/mail/adaptors/test_soledad_adaptor.py @@ -345,6 +345,8 @@ class SoledadMailAdaptorTestCase(SoledadTestMixin): 'base64', msg.wrapper.cdocs[1].content_transfer_encoding) self.assertEqual( 'text/plain', msg.wrapper.cdocs[1].content_type) + self.assertEqual( + 'utf-8', msg.wrapper.cdocs[1].charset) self.assertEqual( 'YSB1dGY4IG1lc3NhZ2U=\n', msg.wrapper.cdocs[1].raw) -- cgit v1.2.3