summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
authormaheshgudi2017-03-09 01:27:39 +0530
committermaheshgudi2017-03-09 01:27:39 +0530
commit8e2bf890d38d4ab2ac73180ff4982302d9355b75 (patch)
treef89d88101c867927628961bf0a856d3c68824999 /yaksh/test_models.py
parent1c5e1dfef3fb4af8bc070fe190cec552ef3732b0 (diff)
parent69951e247ea02196ec6e65324f77898d9ea389b3 (diff)
downloadonline_test-8e2bf890d38d4ab2ac73180ff4982302d9355b75.tar.gz
online_test-8e2bf890d38d4ab2ac73180ff4982302d9355b75.tar.bz2
online_test-8e2bf890d38d4ab2ac73180ff4982302d9355b75.zip
rebase changes
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r--yaksh/test_models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index ada5a65..f0bb310 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -668,6 +668,7 @@ class AnswerPaperTestCases(unittest.TestCase):
current_question = self.answerpaper.current_question()
self.assertEqual(current_question.summary, "Question1")
# Test completed_question() method of Answer Paper
+
question = self.answerpaper.completed_question(self.question1.id)
self.assertEqual(self.answerpaper.questions_left(), 2)
@@ -700,6 +701,7 @@ class AnswerPaperTestCases(unittest.TestCase):
# Then
self.assertTrue(next_question_id is not None)
+
self.assertEqual(next_question_id.summary, "Question2")
# Given, last question in the list
@@ -710,6 +712,7 @@ class AnswerPaperTestCases(unittest.TestCase):
# Then
self.assertTrue(next_question_id is not None)
+
self.assertEqual(next_question_id.summary, "Question2")
# Test get_questions_answered() method
@@ -730,6 +733,7 @@ class AnswerPaperTestCases(unittest.TestCase):
# Test completed_question and next_question
# When all questions are answered
+
current_question = self.answerpaper.completed_question(self.question2.id)
# Then