(self)
| 733 | self.smtp.has_extn, self.smtp.sendmail = Mock(), Mock() |
| 734 | |
| 735 | def testSendMessage(self): |
| 736 | expected_mail_options = ('SMTPUTF8', 'BODY=8BITMIME') |
| 737 | self.smtp.send_message(self.msg) |
| 738 | self.smtp.send_message(self.msg) |
| 739 | self.assertEqual(self.smtp.sendmail.call_args_list[0][0][3], |
| 740 | expected_mail_options) |
| 741 | self.assertEqual(self.smtp.sendmail.call_args_list[1][0][3], |
| 742 | expected_mail_options) |
| 743 | |
| 744 | def testSendMessageWithMailOptions(self): |
| 745 | mail_options = ['STARTTLS'] |
nothing calls this directly
no test coverage detected