示例#1
0
    def test_check_openid(self):

        user = User(openid="google")
        assert user.openid != "google"

        assert not user.check_openid("test")
        assert user.check_openid("google")
示例#2
0
    def test_check_openid(self):

        user = User(openid="google")
        assert user.openid != "google"

        assert not user.check_openid("test")
        assert user.check_openid("google")
示例#3
0
    def test_check_openid_if_password_none(self):

        user = User()

        assert not user.check_openid("test")
示例#4
0
    def test_check_openid_if_password_none(self):

        user = User()

        assert not user.check_openid("test")