def test_password_setter(self): u = User(password='cat') self.assertTrue(u.password_hash is not None)