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

Method test_login_cram_md5_bytes

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

Source from the content-addressed store, hash-verified

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