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

Method test_idle_capability

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

Source from the content-addressed store, hash-verified

558 # command tests
559
560 def test_idle_capability(self):
561 client, _ = self._setup(SimpleIMAPHandler)
562 with self.assertRaisesRegex(imaplib.IMAP4.error,
563 'does not support IMAP4 IDLE'):
564 with client.idle():
565 pass
566
567 def test_idle_denied(self):
568 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