def test_null_password(self): u = User('joe', '*****@*****.**') h.assert_false(u.check_password('foo'))
def test_password(self): u = User('joe', '*****@*****.**') u.password = '******' h.assert_is_not_none(u.password_hash) h.assert_true(u.check_password('foo'))