def test_unusable_password_checks_false(self): # check_password() must always return False for unusable passwords. p = make_password(None) self.assertTrue(not check_password(None, p))
def test_check_password(self): p = make_password(self.password) self.assertTrue(check_password(self.password, p))