def test_normal(self): client = Gsdata('XtO3S5r4uTWLLoiI2Aa0', '94GSwqAL2PwdPbM9N02KNHuf9') t = client.call( '/api/wx/wxapi/wx_content', { 'url': 'http://mp.weixin.qq.com/s?__biz=MzAxOTEyMDI1MQ==&mid=400950548&idx=3&sn=cca852f541f93c53633a4e0069230313&3rd=MzA3MDU4NTYzMw==&scene=6#rd' }) assert json.loads(t).get('returnCode') == '1001'
def test_normal(self): client = Gsdata('XtO3S5r4uTWLLoiI2Aa0','94GSwqAL2PwdPbM9N02KNHuf9') t = client.call('/api/wx/wxapi/wx_content', {'url':'http://mp.weixin.qq.com/s?__biz=MzAxOTEyMDI1MQ==&mid=400950548&idx=3&sn=cca852f541f93c53633a4e0069230313&3rd=MzA3MDU4NTYzMw==&scene=6#rd'}) assert json.loads(t).get('returnCode') == '1001'
def test_sys_check_user(self): client = Gsdata('XtO3S5r4uTWLLoiI2Aa0','94GSwqAL2PwdPbM9N02KNHuf9') t = client.sys_check_user('*****@*****.**') assert json.loads(t).get('returnCode') == '1001'
def test_sys_check_user(self): client = Gsdata('XtO3S5r4uTWLLoiI2Aa0', '94GSwqAL2PwdPbM9N02KNHuf9') t = client.sys_check_user('*****@*****.**') assert json.loads(t).get('returnCode') == '1001'
def test_gsdata_host(self): client = Gsdata('XtO3S5r4uTWLLoiI2Aa0', '94GSwqAL2PwdPbM9N02KNHuf9') assert Gsdata.host == 'http://open.gsdata.cn' Gsdata.host = 'http://demo.cn' assert Gsdata.host == 'http://demo.cn'