def test_valid_new_password(self): u = UserProfile() u.set_password(self.utf) assert u.check_password(self.utf) is True assert u.has_usable_password() is True
def test_invalid_new_password(self): u = UserProfile() u.set_password(self.utf) assert u.check_password('wrong') is False assert u.has_usable_password() is True