コード例 #1
0
 def test_position_subjectModel_query_08(self):
     """测试请求参数不传size和startIndex"""
     result = position_subjectModel_query(positionId_Gary,
                                          size=None,
                                          startIndex=None)
     self.assertIn('"code":0', result.text)
コード例 #2
0
 def test_position_subjectModel_query_05(self):
     """测试请求参数size为1"""
     result = position_subjectModel_query(positionId_Gary,
                                          size=1,
                                          startIndex=startIndex)
     self.assertIn('"code":0', result.text)
コード例 #3
0
 def test_position_subjectModel_query_02(self):
     """测试查询位置错误或不存在"""
     result = position_subjectModel_query(positionId_wrong, size,
                                          startIndex)
     self.assertIn('"code":710', result.text)
コード例 #4
0
 def test_position_subjectModel_query_03(self):
     """测试查询其他用户下位置"""
     result = position_subjectModel_query(positionId_Jenny, size,
                                          startIndex)
     self.assertIn('"code":710', result.text)
コード例 #5
0
 def test_position_subjectModel_query_01(self):
     """测试查询用户自己的家下面的subjectModel类型"""
     result = position_subjectModel_query(positionId_Gary, size, startIndex)
     self.assertIn('"code":0', result.text)