def test_app_service_subject_query_15(self):
     """测试查询多个场景id拥有的service基本信息"""
     result = app_service_subject_query(sceneId_Gary + "," + sceneId_Gary)
     self.assertIn('"code":0', result.text)
 def test_app_service_subject_query_16(self):
     """测试查询多个场景id中有一个错误或不存在"""
     result = app_service_subject_query(sceneId_Gary + "," + sceneId_wrong)
     self.assertIn('"code":0', result.text)
 def test_app_service_subject_query_13(self):
     """测试查询单个自动化id错误或不存在"""
     result = app_service_subject_query(linkageId_wrong)
     self.assertIn('"code":755', result.text)
 def test_app_service_subject_query_14(self):
     """测试查询单个自动化id为空"""
     result = app_service_subject_query("")
     self.assertIn('"code":302', result.text)
 def test_app_service_subject_query_11(self):
     """测试查询单个自动化id拥有的service基本信息"""
     result = app_service_subject_query(linkageId_Gary)
     self.assertIn('"code":0', result.text)
 def test_app_service_subject_query_12(self):
     """测试查询其他用户的自动化id拥有的service基本信息"""
     result = app_service_subject_query(linkageId_Jenny)
     self.assertIn('"code":755', result.text)
 def test_app_service_subject_query_06(self):
     """测试查询单个设备id错误或不存在"""
     result = app_service_subject_query(did_wrong)
     self.assertIn('"code":755', result.text)
 def test_app_service_subject_query_09(self):
     """测试查询多个自动化id中有一个错误或不存在"""
     result = app_service_subject_query(linkageId_Gary + "," + linkageId_wrong)
     self.assertIn('"code":0', result.text)
 def test_app_service_subject_query_05(self):
     """测试查询其他用户的设备id拥有的service基本信息"""
     result = app_service_subject_query(did_wrong)
     self.assertIn('"code":755', result.text)
Пример #10
0
 def test_app_service_subject_query_04(self):
     """测试查询单个设备id拥有的service基本信息"""
     result = app_service_subject_query(did_Gary_hub)
     self.assertIn('"code":0', result.text)
Пример #11
0
 def test_app_service_subject_query_02(self):
     """测试查询多个设备id中有一个错误或不存在"""
     result = app_service_subject_query(did_Gary_hub + "," + did_wrong)
     self.assertIn('"code":0', result.text)
Пример #12
0
 def test_app_service_subject_query_20(self):
     """测试查询单个场景id错误或不存在"""
     result = app_service_subject_query(sceneId_wrong)
     self.assertIn('"code":755', result.text)
Пример #13
0
 def test_app_service_subject_query_19(self):
     """测试查询其他用户的场景id拥有的service基本信息"""
     result = app_service_subject_query(sceneId_Jenny)
     self.assertIn('"code":755', result.text)