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

Method test_idle_denied

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

Source from the content-addressed store, hash-verified

558 pass
559
560 def test_idle_denied(self):
561 client, _ = self._setup(IdleCmdDenyHandler)
562 client.login('user', 'pass')
563 with self.assertRaises(imaplib.IMAP4.error):
564 with client.idle() as idler:
565 pass
566
567 def test_idle_iter(self):
568 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