(self)
| 1220 | |
| 1221 | @hashlib_helper.requires_hashdigest('md5', openssl=True) |
| 1222 | def testAUTH_multiple(self): |
| 1223 | # Test that multiple authentication methods are tried. |
| 1224 | self.serv.add_feature("AUTH BOGUS PLAIN LOGIN CRAM-MD5") |
| 1225 | smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', |
| 1226 | timeout=support.LOOPBACK_TIMEOUT) |
| 1227 | resp = smtp.login(sim_auth[0], sim_auth[1]) |
| 1228 | self.assertEqual(resp, (235, b'Authentication Succeeded')) |
| 1229 | smtp.close() |
| 1230 | |
| 1231 | def test_auth_function(self): |
| 1232 | supported = {'PLAIN', 'LOGIN'} |
nothing calls this directly
no test coverage detected