def has_usable_password(self): return is_password_usable(self.password)
def test_make_unusable(self): "Check that you can create an unusable password." password = utils.make_password("any", None) self.assertFalse(utils.is_password_usable(password)) self.assertFalse(utils.check_password("foobar", password))
def _test_make_password(self, algo): password = utils.make_password(algo, "foobar") self.assertTrue(utils.is_password_usable(password)) self.assertTrue(utils.check_password("foobar", password))