(self)
| 1178 | |
| 1179 | @hashlib_helper.requires_hashdigest('md5', openssl=True) |
| 1180 | def testAUTH_CRAM_MD5(self): |
| 1181 | self.serv.add_feature("AUTH CRAM-MD5") |
| 1182 | smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', |
| 1183 | timeout=support.LOOPBACK_TIMEOUT) |
| 1184 | resp = smtp.login(sim_auth[0], sim_auth[1]) |
| 1185 | self.assertEqual(resp, (235, b'Authentication Succeeded')) |
| 1186 | smtp.close() |
| 1187 | |
| 1188 | @hashlib_helper.block_algorithm('md5') |
| 1189 | @mock.patch("smtplib._have_cram_md5_support", False) |
nothing calls this directly
no test coverage detected