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

Method testAUTH_LOGIN_initial_response_ok

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

Source from the content-addressed store, hash-verified

1139 smtp.close()
1140
1141 def testAUTH_LOGIN_initial_response_ok(self):
1142 self.serv.add_feature("AUTH LOGIN")
1143 with smtplib.SMTP(HOST, self.port, local_hostname='localhost',
1144 timeout=support.LOOPBACK_TIMEOUT) as smtp:
1145 smtp.user, smtp.password = sim_auth
1146 smtp.ehlo("test_auth_login")
1147 resp = smtp.auth("LOGIN", smtp.auth_login, initial_response_ok=True)
1148 self.assertEqual(resp, (235, b'Authentication Succeeded'))
1149
1150 def testAUTH_LOGIN_initial_response_notok(self):
1151 self.serv.add_feature("AUTH LOGIN")

Callers

nothing calls this directly

Calls 4

add_featureMethod · 0.80
ehloMethod · 0.80
authMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected