summaryrefslogtreecommitdiff
path: root/tests/integration/mail/adaptors/test_soledad_adaptor.py
diff options
context:
space:
mode:
authorNavaL <ayoyo@thoughtworks.com>2016-10-19 15:23:17 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2016-10-19 16:48:57 -0400
commit0329b242c851ea1f05e795102638b01bbac7c231 (patch)
tree2f79783c08f8ef7d2b983f7548f5e450a66c120a /tests/integration/mail/adaptors/test_soledad_adaptor.py
parent446280b452218569978da2a6d9ba5f8ef3e501b6 (diff)
[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.
Diffstat (limited to 'tests/integration/mail/adaptors/test_soledad_adaptor.py')
-rw-r--r--tests/integration/mail/adaptors/test_soledad_adaptor.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/integration/mail/adaptors/test_soledad_adaptor.py b/tests/integration/mail/adaptors/test_soledad_adaptor.py
index 8d2ebb5a..72b0be8f 100644
--- a/tests/integration/mail/adaptors/test_soledad_adaptor.py
+++ b/tests/integration/mail/adaptors/test_soledad_adaptor.py
@@ -346,6 +346,8 @@ class SoledadMailAdaptorTestCase(SoledadTestMixin):
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)
def test_get_msg_from_docs(self):