Commit 4fdc5b82 authored by Yusei Tahara's avatar Yusei Tahara

Added content type checking for WebPage.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18638 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2f1558ab
......@@ -510,7 +510,9 @@ class TestCRMMailSend(ERP5TypeTestCase):
for i in message.get_payload():
if i.get_filename()=='sample_attachment.html':
part = i
self.assertEqual(part.get_payload(decode=True), str(document_html.getTextContent()))
self.assertEqual(part.get_payload(decode=True),
str(document_html.getTextContent()))
self.assertEqual(part.get_content_type(), 'text/html')
def test_MailRespond(self):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment