(self)
| 1388 | self.assertEqual(self.serv._addresses['tos'], ['rene@example.com']) |
| 1389 | |
| 1390 | def test_lowercase_mail_from_rcpt_to(self): |
| 1391 | m = 'A test message' |
| 1392 | smtp = smtplib.SMTP( |
| 1393 | HOST, self.port, local_hostname='localhost', |
| 1394 | timeout=support.LOOPBACK_TIMEOUT) |
| 1395 | self.addCleanup(smtp.close) |
| 1396 | |
| 1397 | smtp.sendmail('John', 'Sally', m) |
| 1398 | |
| 1399 | self.assertIn(['mail from:<John> size=14'], self.serv._SMTPchannel.all_received_lines) |
| 1400 | self.assertIn(['rcpt to:<Sally>'], self.serv._SMTPchannel.all_received_lines) |
| 1401 | |
| 1402 | |
| 1403 | class SimSMTPUTF8Server(SimSMTPServer): |
nothing calls this directly
no test coverage detected