Пример #1
0
 def test_ifttt_action_query_09(self):
     """测试请求参数不传size、startIndex"""
     result = ifttt_action_query(positionId_Gary)
     self.assertIn('"code":0', result.text)
Пример #2
0
 def test_ifttt_action_query_07(self):
     """测试size为0"""
     result = ifttt_action_query(positionId_Gary, 0, startIndex)
     self.assertIn('"code":302', result.text)
Пример #3
0
 def test_ifttt_action_query_08(self):
     """测试size为1"""
     result = ifttt_action_query(positionId_Gary, 1, startIndex)
     self.assertIn('"code":0', result.text)
Пример #4
0
 def test_ifttt_action_query_05(self):
     """测试请求参数不传size"""
     result = ifttt_action_query(positionId_Gary,
                                 size=None,
                                 startIndex=startIndex)
     self.assertIn('"code":0', result.text)
Пример #5
0
 def test_ifttt_action_query_04(self):
     """测试位置id为空"""
     result = ifttt_action_query("", size, startIndex)
     self.assertIn('"code":302', result.text)
Пример #6
0
 def test_ifttt_action_query_03(self):
     """测试查看其他用户下的位置提供触发器的应用列表"""
     result = ifttt_action_query(positionId_Jenny, size, startIndex)
     self.assertIn('"code":710', result.text)
Пример #7
0
 def test_ifttt_action_query_02(self):
     """测试位置id错误或不存在"""
     result = ifttt_action_query(positionId_wrong, size, startIndex)
     self.assertIn('"code":710', result.text)
Пример #8
0
 def test_ifttt_action_query_01(self):
     """测试查看可以提供Action的应用列表"""
     result = ifttt_action_query(positionId_Gary, size, startIndex)
     self.assertIn('"code":0', result.text)