summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
authormaheshgudi2018-03-07 19:36:03 +0530
committermaheshgudi2018-03-16 15:15:50 +0530
commitdf7bfb4e4900028831fb3563e998891ef5d0229d (patch)
treee57e20c093e3ead53dfa0261b1b72f3cf6dc371e /yaksh/test_models.py
parent2feec77152518f5f60ddfc46bb22857278c1d7ba (diff)
downloadonline_test-df7bfb4e4900028831fb3563e998891ef5d0229d.tar.gz
online_test-df7bfb4e4900028831fb3563e998891ef5d0229d.tar.bz2
online_test-df7bfb4e4900028831fb3563e998891ef5d0229d.zip
Remove lists from variable name
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r--yaksh/test_models.py12
1 files changed, 6 insertions, 6 deletions
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]))