コード例 #1
0
 def test_service_unsubscribe_05(self):
     """测试取消订阅资源serviceId为空"""
     result = service_unsubscribe("")
     self.assertIn('"code":302', result.text)
コード例 #2
0
 def test_service_unsubscribe_04(self):
     """测试取消订阅多个资源中有serviceId错误或不存在"""
     result = service_unsubscribe(serviceId_on + "," + serviceId_wrong)
     self.assertIn('"code":0', result.text)
コード例 #3
0
 def test_service_unsubscribe_02(self):
     """测试取消订阅多个资源"""
     result = service_unsubscribe(serviceId_on + "," + serviceId_off)
     self.assertIn('"code":0', result.text)
コード例 #4
0
 def test_service_unsubscribe_03(self):
     """测试取消订阅资源serviceId错误或不存在"""
     result = service_unsubscribe(serviceId_wrong)
     self.assertIn('"code":709', result.text)
コード例 #5
0
 def test_service_unsubscribe_01(self):
     """测试取消资源订阅"""
     result = service_unsubscribe(serviceId_on)
     self.assertIn('"code":0', result.text)