diff options
author | prathamesh | 2017-09-05 19:42:04 +0530 |
---|---|---|
committer | prathamesh | 2017-09-05 19:42:04 +0530 |
commit | 09c00608a215df7a44782ab3f7c97cb912664bfd (patch) | |
tree | 9c267b989382bf81542650b28b0f3f179bb8b090 /yaksh/test_models.py | |
parent | 7aac7a18e4e393b7e267d3687be73a7fdfb7b400 (diff) | |
parent | e3a43662d2aae8688039671d3de532e48fbdfda9 (diff) | |
download | online_test-09c00608a215df7a44782ab3f7c97cb912664bfd.tar.gz online_test-09c00608a215df7a44782ab3f7c97cb912664bfd.tar.bz2 online_test-09c00608a215df7a44782ab3f7c97cb912664bfd.zip |
Merge branch 'master' of https://github.com/FOSSEE/online_test into improve-code-server
Conflicts Resolved:
yaksh/views.py
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r-- | yaksh/test_models.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py index a940c0f..bc7f114 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -451,6 +451,13 @@ class QuestionPaperTestCases(unittest.TestCase): self.assertFalse(self.question_paper.is_prerequisite_passed(self.user)) # test can_attempt_now(self): self.assertFalse(self.question_paper.can_attempt_now(self.user)) + # trying to create an answerpaper with same parameters passed. + answerpaper2 = self.question_paper.make_answerpaper(self.user, self.ip, + attempt_num) + # check if make_answerpaper returned an object instead of creating one. + self.assertEqual(answerpaper, answerpaper2) + + def test_create_trial_paper_to_test_quiz(self): qu_list = [str(self.questions_list[0]), str(self.questions_list[1])] |