Exemplo n.º 1
0
 def test_Newest_Medley_range_error(self):
     '''传值超出范围'''
     user = UserAPI(self.baseurl)
     response = user.user_Newest_Medley(0, 10)
     r = response.json()
     self.api.writeLog(sys._getframe().f_code.co_name, response.text)
     self.assertEqual(110, r['status'])
Exemplo n.º 2
0
 def test_Newest_Medley_type_error(self):
     '''传值类型错误'''
     user = UserAPI(self.baseurl)
     response = user.user_Newest_Medley("a", 20)
     r = response.json()
     self.api.writeLog(sys._getframe().f_code.co_name, response.text)
     self.assertEqual(116, r['status'])
Exemplo n.º 3
0
 def test_Newest_Medley_size_range(self):
     user = UserAPI(self.baseurl)
     response = user.user_Newest_Medley(1, 0)
     r = response.json()
     self.api.writeLog(sys._getframe().f_code.co_name, response.text)
     self.assertEqual(110, r['status'])