(self)
| 1251 | smtp.close() |
| 1252 | |
| 1253 | def test_quit_resets_greeting(self): |
| 1254 | smtp = smtplib.SMTP(HOST, self.port, |
| 1255 | local_hostname='localhost', |
| 1256 | timeout=support.LOOPBACK_TIMEOUT) |
| 1257 | code, message = smtp.ehlo() |
| 1258 | self.assertEqual(code, 250) |
| 1259 | self.assertIn('size', smtp.esmtp_features) |
| 1260 | smtp.quit() |
| 1261 | self.assertNotIn('size', smtp.esmtp_features) |
| 1262 | smtp.connect(HOST, self.port) |
| 1263 | self.assertNotIn('size', smtp.esmtp_features) |
| 1264 | smtp.ehlo_or_helo_if_needed() |
| 1265 | self.assertIn('size', smtp.esmtp_features) |
| 1266 | smtp.quit() |
| 1267 | |
| 1268 | def test_with_statement(self): |
| 1269 | with smtplib.SMTP(HOST, self.port) as smtp: |
nothing calls this directly
no test coverage detected