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

Class MyServer

Lib/test/test_imaplib.py:417–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415
416 def test_bad_auth_name(self):
417 class MyServer(SimpleIMAPHandler):
418 def cmd_AUTHENTICATE(self, tag, args):
419 self._send_tagged(tag, 'NO',
420 'unrecognized authentication type {}'.format(args[0]))
421 client, _ = self._setup(MyServer)
422 with self.assertRaisesRegex(imaplib.IMAP4.error,
423 'unrecognized authentication type METHOD'):

Callers 1

make_serverMethod · 0.70

Calls

no outgoing calls

Tested by 1

make_serverMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…