(self)
| 154 | assert attach.get_payload(decode=True).decode("utf-8") == body |
| 155 | |
| 156 | def test_create_sender_factory_with_host(self): |
| 157 | mailsender = MailSender(debug=False, smtphost="smtp.testhost.com") |
| 158 | |
| 159 | factory = mailsender._create_sender_factory( |
| 160 | to_addrs=["test@scrapy.org"], msg="test", d=defer.Deferred() |
| 161 | ) |
| 162 | |
| 163 | context = factory.buildProtocol("test@scrapy.org").context |
| 164 | assert isinstance(context, ClientTLSOptions) |
nothing calls this directly
no test coverage detected