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

Method test_login

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

Source from the content-addressed store, hash-verified

618 self.fail('multi-packet response was corrupted by idle timeout')
619
620 def test_login(self):
621 client, _ = self._setup(SimpleIMAPHandler)
622 typ, data = client.login('user', 'pass')
623 self.assertEqual(typ, 'OK')
624 self.assertEqual(data[0], b'LOGIN completed')
625 self.assertEqual(client.state, 'AUTH')
626
627 def test_logout(self):
628 client, _ = self._setup(SimpleIMAPHandler)

Callers

nothing calls this directly

Calls 3

_setupMethod · 0.95
loginMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected