MCPcopy
hub / github.com/django/django / test_unspecified_password

Method test_unspecified_password

tests/auth_tests/test_hashers.py:254–259  ·  view source on GitHub ↗

Makes sure specifying no plain password with a valid encoded password returns `False`.

(self)

Source from the content-addressed store, hash-verified

252 self.assertNotEqual(encoded, make_password(None), "Random password collision?")
253
254 def test_unspecified_password(self):
255 """
256 Makes sure specifying no plain password with a valid encoded password
257 returns `False`.
258 """
259 self.assertFalse(check_password(None, make_password("lètmein")))
260
261 def test_bad_algorithm(self):
262 msg = (

Callers

nothing calls this directly

Calls 2

check_passwordFunction · 0.90
make_passwordFunction · 0.90

Tested by

no test coverage detected