Ejemplo n.º 1
0
 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'
Ejemplo n.º 2
0
	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'
Ejemplo n.º 3
0
	def test_sys_check_user(self):
		client = Gsdata('XtO3S5r4uTWLLoiI2Aa0','94GSwqAL2PwdPbM9N02KNHuf9')
		t = client.sys_check_user('*****@*****.**')
		assert json.loads(t).get('returnCode') == '1001'
Ejemplo n.º 4
0
 def test_sys_check_user(self):
     client = Gsdata('XtO3S5r4uTWLLoiI2Aa0', '94GSwqAL2PwdPbM9N02KNHuf9')
     t = client.sys_check_user('*****@*****.**')
     assert json.loads(t).get('returnCode') == '1001'
Ejemplo n.º 5
0
 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'