Beispiel #1
0
 def test_ota_query_firmware_online_05(self):
     """测试固件版本为空"""
     result = ota_query_firmware_online(model, "")
     self.assertIn('"code":0', result.text)
Beispiel #2
0
 def test_ota_query_firmware_online_04(self):
     """测试设备类型为空"""
     result = ota_query_firmware_online("", firmwareVersion)
     self.assertIn('"code":302', result.text)
Beispiel #3
0
 def test_ota_query_firmware_online_02(self):
     """测试设备类型错误或不存在"""
     result = ota_query_firmware_online(model + "1", firmwareVersion)
     self.assertIn('"code":0', result.text)
Beispiel #4
0
 def test_ota_query_firmware_online_03(self):
     """测试固件版本错误或不存在"""
     result = ota_query_firmware_online(model, firmwareVersion + "1")
     self.assertIn('"code":0', result.text)
Beispiel #5
0
 def test_ota_query_firmware_online_01(self):
     """测试查看线上最新固件"""
     result = ota_query_firmware_online(model, firmwareVersion)
     self.assertIn('"code":0', result.text)