(self)
| 357 | smtp.quit() |
| 358 | |
| 359 | def testSecondHELO(self): |
| 360 | # check that a second HELO returns a message that it's a duplicate |
| 361 | # (this behavior is specific to smtpd.SMTPChannel) |
| 362 | smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', |
| 363 | timeout=support.LOOPBACK_TIMEOUT) |
| 364 | self.addCleanup(smtp.close) |
| 365 | smtp.helo() |
| 366 | expected = (503, b'Duplicate HELO/EHLO') |
| 367 | self.assertEqual(smtp.helo(), expected) |
| 368 | smtp.quit() |
| 369 | |
| 370 | def testHELP(self): |
| 371 | smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', |
nothing calls this directly
no test coverage detected