def test_hashing(self): password = auth.generate_password_hash('pass') self.assertTrue(auth.check_password_hash(password, 'pass'))
def setup(self): password = auth.generate_password_hash('pass') self.add_model(models.User, username='******', password=password) self.assertFalse(current_user.is_authenticated())