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

Method _authenticated

Lib/test/test_smtplib.py:878–884  ·  view source on GitHub ↗
(self, user, valid)

Source from the content-addressed store, hash-verified

876 self.auth_object(args[1] if len(args) == 2 else None)
877
878 def _authenticated(self, user, valid):
879 if valid:
880 self.authenticated_user = user
881 self.push('235 Authentication Succeeded')
882 else:
883 self.push('535 Authentication credentials invalid')
884 self.smtp_state = self.COMMAND
885
886 def _decode_base64(self, string):
887 return base64.decodebytes(string.encode('ascii')).decode('utf-8')

Callers 3

_auth_plainMethod · 0.95
_auth_loginMethod · 0.95
_auth_cram_md5Method · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected