MCPcopy Index your code
hub / github.com/python/cpython / testSendMessage

Method testSendMessage

Lib/test/test_smtplib.py:735–742  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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']

Callers

nothing calls this directly

Calls 2

send_messageMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected