def test_ifttt_scene_query_log_13(self): """测试size为1""" result = ifttt_scene_query_log(positionId_real1_Gary, startTime, endTime, size=1, startIndex=startIndex) self.assertIn('"code":0', result.text)
def test_ifttt_scene_query_log_17(self): """测试请求参数不传startIndex""" result = ifttt_scene_query_log(positionId_real1_Gary, startTime, endTime, size, startIndex=None) self.assertIn('"code":0', result.text)
def test_ifttt_scene_query_log_08(self): """测试startIndex为空""" result = ifttt_scene_query_log(positionId_real1_Gary, startTime, endTime, size, "") self.assertIn('"code":0', result.text)
def test_ifttt_scene_query_log_11(self): """测试开始时间大于结束时间""" result = ifttt_scene_query_log(positionId_real1_Gary, endTime, startTime, size, startIndex) self.assertIn('"code":729', result.text)
def test_ifttt_scene_query_log_04(self): """测试位置id为空""" result = ifttt_scene_query_log("", startTime, endTime, size, startIndex) self.assertIn('"code":302', result.text)
def test_ifttt_scene_query_log_03(self): """测试其他用户位置联动执行的日志""" result = ifttt_scene_query_log(positionId_real1_Jenny, startTime, endTime, size, startIndex) self.assertIn('"code":710', result.text)
def test_ifttt_scene_query_log_02(self): """测试位置id错误或不存在""" result = ifttt_scene_query_log(positionId_wrong, startTime, endTime, size, startIndex) self.assertIn('"code":710', result.text)
def test_ifttt_scene_query_log_01(self): """测试查看用户下或属于某个位置下的场景日志""" result = ifttt_scene_query_log(positionId_real1_Gary, startTime, endTime, size, startIndex) self.assertIn('"code":0', result.text)
def test_ifttt_scene_query_log_18(self): """测试请求参数只传位置id""" result = ifttt_scene_query_log(positionId_real1_Gary) self.assertIn('"code":0', result.text)