diff options
author | Prabhu Ramachandran | 2016-08-31 17:36:03 +0530 |
---|---|---|
committer | GitHub | 2016-08-31 17:36:03 +0530 |
commit | 27e7a443ef132e04cc5aeece7a5bf34d0687f482 (patch) | |
tree | 5107b580ad56199f021bdaeac04af71a7921f490 /yaksh/test_models.py | |
parent | aefc8eed3b0c18520059b4005978f1db9cf5591b (diff) | |
parent | 18cbf091f991cd205a07c87db0ddde980bef34e2 (diff) | |
download | online_test-27e7a443ef132e04cc5aeece7a5bf34d0687f482.tar.gz online_test-27e7a443ef132e04cc5aeece7a5bf34d0687f482.tar.bz2 online_test-27e7a443ef132e04cc5aeece7a5bf34d0687f482.zip |
Merge pull request #129 from prathamesh920/view_answerpaper
View answerpaper
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r-- | yaksh/test_models.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py index c0721f3..2136987 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -252,6 +252,18 @@ class QuizTestCases(unittest.TestCase): ) self.assertEqual(trial_quiz.time_between_attempts, 0) + def test_view_answerpaper(self): + self.assertFalse(self.quiz1.view_answerpaper) + self.assertFalse(self.quiz2.view_answerpaper) + + # When + self.quiz1.view_answerpaper = True + self.quiz1.save() + + # Then + self.assertTrue(self.quiz1.view_answerpaper) + + ############################################################################### class QuestionPaperTestCases(unittest.TestCase): |