Commit 9aabfa58 authored by Jérome Perrin's avatar Jérome Perrin

testCRM: remove a duplicated test

parent 8350fbd6
...@@ -1095,6 +1095,9 @@ class TestCRMMailSend(BaseTestCRM): ...@@ -1095,6 +1095,9 @@ class TestCRMMailSend(BaseTestCRM):
self.portal.portal_workflow.doActionFor(event, 'start_action', self.portal.portal_workflow.doActionFor(event, 'start_action',
send_mail=1) send_mail=1)
self.tic() self.tic()
# content type is kept
self.assertEquals(event.getContentType(), 'text/html')
# The getTextContent() gets the content from the file data instead the # The getTextContent() gets the content from the file data instead the
# Attribute text_content. # Attribute text_content.
self.assertEquals(event.text_content, text_content) self.assertEquals(event.text_content, text_content)
...@@ -1114,23 +1117,6 @@ class TestCRMMailSend(BaseTestCRM): ...@@ -1114,23 +1117,6 @@ class TestCRMMailSend(BaseTestCRM):
self.assertNotEqual(part, None) self.assertNotEqual(part, None)
self.assertEqual('<html><body>%s</body></html>' % text_content, part.get_payload(decode=True)) self.assertEqual('<html><body>%s</body></html>' % text_content, part.get_payload(decode=True))
def test_MailMessageHTMLbis(self):
# test sending a mail message edited as HTML (the default with FCKEditor),
# then the mail should have HTML
text_content = 'Hello<br/>World'
event = self.portal.event_module.newContent(portal_type='Mail Message')
event.setSource('person_module/me')
event.setDestination('person_module/recipient')
event.setContentType('text/html')
event.setTextContent(text_content)
self.portal.portal_workflow.doActionFor(event, 'start_action',
send_mail=1)
self.tic()
# This test fails because of known issue for outgoing emails.
# there is conflict between properties from data
# and properties from document.
self.assertEquals(event.getContentType(), 'text/html')
def test_MailMessageEncoding(self): def test_MailMessageEncoding(self):
# test sending a mail message with non ascii characters # test sending a mail message with non ascii characters
event = self.portal.event_module.newContent(portal_type='Mail Message') event = self.portal.event_module.newContent(portal_type='Mail Message')
......
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