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

Method test_logout

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

Source from the content-addressed store, hash-verified

632 self.assertEqual(client.state, 'AUTH')
633
634 def test_logout(self):
635 client, _ = self._setup(SimpleIMAPHandler)
636 typ, data = client.login('user', 'pass')
637 self.assertEqual(typ, 'OK')
638 self.assertEqual(data[0], b'LOGIN completed')
639 typ, data = client.logout()
640 self.assertEqual(typ, 'BYE', (typ, data))
641 self.assertEqual(data[0], b'IMAP4ref1 Server logging out', (typ, data))
642 self.assertEqual(client.state, 'LOGOUT')
643
644 def test_lsub(self):
645 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