def test_check_openid(self): user = User(openid="google") assert user.openid != "google" assert not user.check_openid("test") assert user.check_openid("google")
def test_check_openid_if_password_none(self): user = User() assert not user.check_openid("test")