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

Method test_idle_denied

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

Source from the content-addressed store, hash-verified

565 pass
566
567 def test_idle_denied(self):
568 client, _ = self._setup(IdleCmdDenyHandler)
569 client.login('user', 'pass')
570 with self.assertRaises(imaplib.IMAP4.error):
571 with client.idle() as idler:
572 pass
573
574 def test_idle_iter(self):
575 client, _ = self._setup(IdleCmdHandler)

Callers

nothing calls this directly

Calls 4

_setupMethod · 0.95
idleMethod · 0.80
loginMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected