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

Method testAUTH_LOGIN

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

Source from the content-addressed store, hash-verified

1131 smtp.close()
1132
1133 def testAUTH_LOGIN(self):
1134 self.serv.add_feature("AUTH LOGIN")
1135 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',
1136 timeout=support.LOOPBACK_TIMEOUT)
1137 resp = smtp.login(sim_auth[0], sim_auth[1])
1138 self.assertEqual(resp, (235, b'Authentication Succeeded'))
1139 smtp.close()
1140
1141 def testAUTH_LOGIN_initial_response_ok(self):
1142 self.serv.add_feature("AUTH 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