(self)
| 327 | smtp.quit() |
| 328 | |
| 329 | def testEXPNNotImplemented(self): |
| 330 | # EXPN isn't implemented in DebuggingServer |
| 331 | smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', |
| 332 | timeout=support.LOOPBACK_TIMEOUT) |
| 333 | self.addCleanup(smtp.close) |
| 334 | expected = (502, b'EXPN not implemented') |
| 335 | smtp.putcmd('EXPN') |
| 336 | self.assertEqual(smtp.getreply(), expected) |
| 337 | smtp.quit() |
| 338 | |
| 339 | def test_issue43124_putcmd_escapes_newline(self): |
| 340 | # see: https://bugs.python.org/issue43124 |
nothing calls this directly
no test coverage detected