MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_bad_auth_name

Method test_bad_auth_name

Lib/test/test_imaplib.py:937–947  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

935
936 @threading_helper.reap_threads
937 def test_bad_auth_name(self):
938
939 class MyServer(SimpleIMAPHandler):
940
941 def cmd_AUTHENTICATE(self, tag, args):
942 self._send_tagged(tag, 'NO', 'unrecognized authentication '
943 'type {}'.format(args[0]))
944
945 with self.reaped_pair(MyServer) as (server, client):
946 with self.assertRaises(imaplib.IMAP4.error):
947 client.authenticate('METHOD', lambda: 1)
948
949 @threading_helper.reap_threads
950 def test_invalid_authentication(self):

Callers

nothing calls this directly

Calls 3

reaped_pairMethod · 0.95
authenticateMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected