def test_015_realtime_getDeviceByCar(self):
     """
       Time       :2019-06-14
       author     : 闫红
       desc       : 查询同车设备
     """
     financeid = fs.get_warn_latest()
     rs = f.test_realtime_getDeviceByCar(financeid=financeid)
     a.verity(json.loads(rs)['code'],'F2000')
     a.verityContain(json.loads(rs)['message'],'成功')
     a.verity(json.loads(rs)['data'][0]['financeId'],financeid,'断言financeid')
 def test_016_realtime_mainDevice(self):
     """
       Time       :2019-06-14
       author     : 闫红
       desc       : 设置主设备
     """
     financeid = fs.get_warn_latest()
     gpsid = fs.get_gpsid_by_fid(financeid)
     rs = f.test_realtime_mainDevice(financeid=financeid, gpsid=gpsid)
     a.verity(json.loads(rs)['code'],'F2000')
     a.verityContain(json.loads(rs)['message'],'成功')
 def test_013_realtime_getWarnsByCar(self):
     """
       Time       :2019-06-14
       author     : 闫红
       desc       : 查看车辆报警
     """
     financeid = fs.get_warn_latest()
     rs = f.test_realtime_getWarnsByCar(financeid=financeid, pagesize=1, pagenum=10)
     a.verity(json.loads(rs)['code'],'F2000')
     a.verityContain(json.loads(rs)['message'],'成功')
     a.verity(json.loads(rs)['data']['record'][0]['financeId'],financeid,'断言financeid')