(self)
| 1139 | smtp.close() |
| 1140 | |
| 1141 | def testAUTH_LOGIN_initial_response_ok(self): |
| 1142 | self.serv.add_feature("AUTH LOGIN") |
| 1143 | with smtplib.SMTP(HOST, self.port, local_hostname='localhost', |
| 1144 | timeout=support.LOOPBACK_TIMEOUT) as smtp: |
| 1145 | smtp.user, smtp.password = sim_auth |
| 1146 | smtp.ehlo("test_auth_login") |
| 1147 | resp = smtp.auth("LOGIN", smtp.auth_login, initial_response_ok=True) |
| 1148 | self.assertEqual(resp, (235, b'Authentication Succeeded')) |
| 1149 | |
| 1150 | def testAUTH_LOGIN_initial_response_notok(self): |
| 1151 | self.serv.add_feature("AUTH LOGIN") |
nothing calls this directly
no test coverage detected