MCPcopy
hub / github.com/django/django / test_acheck_password

Method test_acheck_password

tests/auth_tests/test_hashers.py:64–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 self.assertFalse(check_password(" ", blank_encoded))
63
64 async def test_acheck_password(self):
65 encoded = make_password("lètmein")
66 self.assertIs(await acheck_password("lètmein", encoded), True)
67 self.assertIs(await acheck_password("lètmeinz", encoded), False)
68 # Blank passwords.
69 blank_encoded = make_password("")
70 self.assertIs(await acheck_password("", blank_encoded), True)
71 self.assertIs(await acheck_password(" ", blank_encoded), False)
72
73 def test_bytes(self):
74 encoded = make_password(b"bytes_password")

Callers

nothing calls this directly

Calls 2

make_passwordFunction · 0.90
acheck_passwordFunction · 0.90

Tested by

no test coverage detected