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

Method test_login

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

Source from the content-addressed store, hash-verified

625 self.fail('multi-packet response was corrupted by idle timeout')
626
627 def test_login(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 self.assertEqual(client.state, 'AUTH')
633
634 def test_logout(self):
635 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