def test_login_with(): data = { "openid": "0395BA18A5CD6255E5BA185E7BEBA242", "access_token": "12345678-SaMpLeTuo3m2avZxh5cjJmIrAfx4ZYyamdofM7IjU", "expires_in": 1382686496 } User.login_with('weixin', data)
def test_is_linked(): data = { 'uid': '1', 'access_token': 'xxx' } user = User.login_with('xxx', data) assert user.is_linked('xxx')
def test_unlink_from(): data = { 'uid': '1', 'access_token': 'xxx' } user = User.login_with('xxx', data) user.unlink_from('xxx')
def test_login_with(): data = { 'uid': '1', 'access_token': 'xxx' } User.login_with('xxx', data)
def test_login_with(): # type: () -> None data = { 'uid': '1', 'access_token': 'xxx' } User.login_with('xxx', data)
def test_is_linked(): # type: () -> None data = {'uid': '1', 'access_token': 'xxx'} user = User.login_with('xxx', data) assert user.is_linked('xxx')
def test_login_with(): # type: () -> None data = {'uid': '1', 'access_token': 'xxx'} User.login_with('xxx', data)
def test_unlink_from(): # type: () -> None data = {'uid': '1', 'access_token': 'xxx'} user = User.login_with('xxx', data) user.unlink_from('xxx')
def test_is_linked(): # type: () -> None data = {"uid": "1", "access_token": "xxx"} user = User.login_with("xxx", data) assert user.is_linked("xxx")
def test_unlink_from(): # type: () -> None data = {"uid": "1", "access_token": "xxx"} user = User.login_with("xxx", data) user.unlink_from("xxx")
def test_login_with(): # type: () -> None data = {"uid": "1", "access_token": "xxx"} User.login_with("xxx", data)
def test_login_with(): data = {'uid': '1', 'access_token': 'xxx'} User.login_with('xxx', data)