diff options
author | adityacp | 2016-05-04 22:55:19 +0530 |
---|---|---|
committer | adityacp | 2016-05-04 22:55:19 +0530 |
commit | 2f7891874aec1dec962d55e3b2aaed1c61d7acaa (patch) | |
tree | 8c95b44a16ec6359d18975d0d4f5ab229ba98f24 /yaksh/tests.py | |
parent | 5bb441584628e65fe08ce1f240ad43f5f3ca88a8 (diff) | |
download | online_test-2f7891874aec1dec962d55e3b2aaed1c61d7acaa.tar.gz online_test-2f7891874aec1dec962d55e3b2aaed1c61d7acaa.tar.bz2 online_test-2f7891874aec1dec962d55e3b2aaed1c61d7acaa.zip |
rebase changes and changes as per comments
Diffstat (limited to 'yaksh/tests.py')
-rw-r--r-- | yaksh/tests.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/yaksh/tests.py b/yaksh/tests.py index eedcd30..a3f3880 100644 --- a/yaksh/tests.py +++ b/yaksh/tests.py @@ -135,14 +135,14 @@ class QuestionTestCases(unittest.TestCase): """ Test dump questions into json """ question = Question() questions = json.loads(question.dump_into_json(self.user1)) - for que in questions: - self.assertEqual(self.question1.summary, que['summary']) - self.assertEqual(self.question1.language, que['language']) - self.assertEqual(self.question1.type, que['type']) - self.assertEqual(self.question1.description, que['description']) - self.assertEqual(self.question1.points, que['points']) + for q in questions: + self.assertEqual(self.question1.summary, q['summary']) + self.assertEqual(self.question1.language, q['language']) + self.assertEqual(self.question1.type, q['type']) + self.assertEqual(self.question1.description, q['description']) + self.assertEqual(self.question1.points, q['points']) self.assertTrue(self.question1.active) - self.assertEqual(self.question1.snippet, que['snippet']) + self.assertEqual(self.question1.snippet, q['snippet']) def test_load_questions_from_json(self): """ Test load questions into database from json """ |