summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
authorankitjavalkar2017-10-05 17:02:10 +0530
committerankitjavalkar2017-10-05 17:34:55 +0530
commit2ffbca59a947bcef7f4ae28b2bd1d73d18179380 (patch)
tree64dc3191256e2967a44550647fb6b2364f6d2ca6 /yaksh/test_models.py
parent2aa6ad38c89162eaef2e886947f9b7eabc4dfc4c (diff)
downloadonline_test-2ffbca59a947bcef7f4ae28b2bd1d73d18179380.tar.gz
online_test-2ffbca59a947bcef7f4ae28b2bd1d73d18179380.tar.bz2
online_test-2ffbca59a947bcef7f4ae28b2bd1d73d18179380.zip
Fix breaking tests
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r--yaksh/test_models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index fd31ca2..ac90c53 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -800,13 +800,14 @@ class AnswerPaperTestCases(unittest.TestCase):
# Then
self.assertEqual(self.answerpaper.questions_left(), 0)
- self.assertTrue(current_question is None)
+ self.assertTrue(current_question == self.answerpaper.questions.all()[0])
# When
next_question_id = self.answerpaper.next_question(current_question_id)
# Then
- self.assertTrue(next_question_id is None)
+ all_questions = self.questions.all()
+ self.assertTrue(next_question_id == all_questions[0])
def test_update_marks(self):
""" Test update_marks method of AnswerPaper"""