(self)
| 259 | self.assertFalse(check_password(None, make_password("lètmein"))) |
| 260 | |
| 261 | def test_bad_algorithm(self): |
| 262 | msg = ( |
| 263 | "Unknown password hashing algorithm '%s'. Did you specify it in " |
| 264 | "the PASSWORD_HASHERS setting?" |
| 265 | ) |
| 266 | with self.assertRaisesMessage(ValueError, msg % "lolcat"): |
| 267 | make_password("lètmein", hasher="lolcat") |
| 268 | with self.assertRaisesMessage(ValueError, msg % "lolcat"): |
| 269 | identify_hasher("lolcat$salt$hash") |
| 270 | |
| 271 | def test_is_password_usable(self): |
| 272 | passwords = ("lètmein_badencoded", "", None) |
nothing calls this directly
no test coverage detected