コード例 #1
0
 def test_service_subscribe_05(self):
     """测试订阅资源serviceId为空"""
     result = service_subscribe("")
     self.assertIn('"code":302', result.text)
コード例 #2
0
 def test_service_subscribe_04(self):
     """测试订阅多个资源中有serviceId错误或不存在"""
     result = service_subscribe(serviceId_on + "," + serviceId_wrong)
     self.assertIn('"code":0', result.text)
コード例 #3
0
 def test_service_subscribe_02(self):
     """测试订阅多个资源"""
     result = service_subscribe(serviceId_on + "," + serviceId_off)
     self.assertIn('"code":0', result.text)
コード例 #4
0
 def test_service_subscribe_03(self):
     """测试订阅资源serviceId错误或不存在"""
     result = service_subscribe(serviceId_wrong)
     self.assertIn('"code":709', result.text)
コード例 #5
0
 def test_service_subscribe_01(self):
     """测试订阅资源"""
     result = service_subscribe(serviceId_on)
     self.assertIn('"code":0', result.text)