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

Method test_logout

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

Source from the content-addressed store, hash-verified

625 self.assertEqual(client.state, 'AUTH')
626
627 def test_logout(self):
628 client, _ = self._setup(SimpleIMAPHandler)
629 typ, data = client.login('user', 'pass')
630 self.assertEqual(typ, 'OK')
631 self.assertEqual(data[0], b'LOGIN completed')
632 typ, data = client.logout()
633 self.assertEqual(typ, 'BYE', (typ, data))
634 self.assertEqual(data[0], b'IMAP4ref1 Server logging out', (typ, data))
635 self.assertEqual(client.state, 'LOGOUT')
636
637 def test_lsub(self):
638 class LsubCmd(SimpleIMAPHandler):

Callers

nothing calls this directly

Calls 4

_setupMethod · 0.95
logoutMethod · 0.80
loginMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected