MCPcopy Create free account
hub / github.com/python/cpython / testAUTH_CRAM_MD5

Method testAUTH_CRAM_MD5

Lib/test/test_smtplib.py:1180–1186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 4

loginMethod · 0.95
closeMethod · 0.95
add_featureMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected