MCPcopy Create free account
hub / github.com/python/cpython / test_idle_capability

Method test_idle_capability

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

Source from the content-addressed store, hash-verified

551 # command tests
552
553 def test_idle_capability(self):
554 client, _ = self._setup(SimpleIMAPHandler)
555 with self.assertRaisesRegex(imaplib.IMAP4.error,
556 'does not support IMAP4 IDLE'):
557 with client.idle():
558 pass
559
560 def test_idle_denied(self):
561 client, _ = self._setup(IdleCmdDenyHandler)

Callers

nothing calls this directly

Calls 3

_setupMethod · 0.95
assertRaisesRegexMethod · 0.80
idleMethod · 0.80

Tested by

no test coverage detected