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

Method test_line_termination

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

Source from the content-addressed store, hash-verified

331 *server.server_address)
332
333 def test_line_termination(self):
334 class BadNewlineHandler(SimpleIMAPHandler):
335 def cmd_CAPABILITY(self, tag, args):
336 self._send(b'* CAPABILITY IMAP4rev1 AUTH\n')
337 self._send_tagged(tag, 'OK', 'CAPABILITY completed')
338 _, server = self._setup(BadNewlineHandler, connect=False)
339 self.assertRaises(imaplib.IMAP4.abort, self.imap_class,
340 *server.server_address)
341
342 def test_enable_raises_error_if_not_AUTH(self):
343 class EnableHandler(SimpleIMAPHandler):

Callers

nothing calls this directly

Calls 2

_setupMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected