MCPcopy Index your code
hub / github.com/python/cpython / testAUTH_multiple

Method testAUTH_multiple

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

Source from the content-addressed store, hash-verified

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'}

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