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

Method test_login_cram_md5_bytes

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

Source from the content-addressed store, hash-verified

458
459 @hashlib_helper.requires_hashdigest('md5', openssl=True)
460 def test_login_cram_md5_bytes(self):
461 client, _ = self._setup(AuthHandler_CRAM_MD5)
462 self.assertIn('AUTH=CRAM-MD5', client.capabilities)
463 ret, _ = client.login_cram_md5("tim", b"tanstaaftanstaaf")
464 self.assertEqual(ret, "OK")
465
466 @hashlib_helper.requires_hashdigest('md5', openssl=True)
467 def test_login_cram_md5_plain_text(self):

Callers

nothing calls this directly

Calls 4

_setupMethod · 0.95
assertInMethod · 0.80
login_cram_md5Method · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected