Esempio n. 1
0
 def test_res_unsubscribe_05(self):
     """测试取消订阅设备资源列表为空"""
     result = res_unsubscribe(subjectId_Gary, "")
     self.assertIn('"code":302', result.text)
Esempio n. 2
0
 def test_res_unsubscribe_04(self):
     """测试取消订阅设备id为空"""
     result = res_unsubscribe("", attrs)
     self.assertIn('"code":302', result.text)
Esempio n. 3
0
 def test_res_unsubscribe_02(self):
     """测试取消订阅id错误或不存在"""
     result = res_unsubscribe(subjectId_wrong, attrs)
     self.assertIn('"code":756', result.text)
Esempio n. 4
0
 def test_res_unsubscribe_03(self):
     """测试取消订阅其他人的设备id"""
     result = res_unsubscribe(subjectId_Jenny, attrs)
     self.assertIn('"code":756', result.text)
Esempio n. 5
0
 def test_res_unsubscribe_01(self):
     """测试取消资源订阅"""
     result = res_unsubscribe(subjectId_Gary, attrs)
     self.assertIn('"code":0', result.text)