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

Method test_line_termination

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_setupMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected