def test_Recommend_type_error(self): user = UserAPI(self.baseurl) response = user.user_Recommend(1, 'a') r = response.json() self.api.writeLog(sys._getframe().f_code.co_name, response.text) self.assertEqual(116, r['status'])
def test_Recommend_range_out(self): user = UserAPI(self.baseurl) response = user.user_Recommend(0, 10) r = response.json() self.api.writeLog(sys._getframe().f_code.co_name, response.text) self.assertEqual(110, r['status'])