From df7bfb4e4900028831fb3563e998891ef5d0229d Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Wed, 7 Mar 2018 19:36:03 +0530 Subject: Remove lists from variable name --- yaksh/test_models.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'yaksh/test_models.py') diff --git a/yaksh/test_models.py b/yaksh/test_models.py index bebc929..39a90d1 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -1379,13 +1379,13 @@ class AnswerPaperTestCases(unittest.TestCase): error_list = [json.loads(ans.error) for ans in answers_saved] if answers_saved: self.assertEqual(len(answered[question]), len(answers_saved)) - ans_list = [] - err_list = [] + ans = [] + err = [] for val in answered[question]: - ans_list.append(val.get('answer')) - err_list.append(val.get('error_list')) - self.assertEqual(set(ans_list), set(answers_saved)) - self.assertEqual(error_list, err_list) + ans.append(val.get('answer')) + err.append(val.get('error_list')) + self.assertEqual(set(ans), set(answers_saved)) + self.assertEqual(error_list, err) def test_is_answer_correct(self): self.assertTrue(self.answerpaper.is_answer_correct(self.questions[0])) -- cgit