diff options
author | maheshgudi | 2016-06-01 00:35:45 +0530 |
---|---|---|
committer | maheshgudi | 2016-06-01 00:35:45 +0530 |
commit | 46c04c3cdd7c7cdb5acd9d8495934df26f469146 (patch) | |
tree | 56487e2c80f3986e0956155fb63e56160a62b7a9 | |
parent | bb2fbbb66c7548eb6df8ebd65b9db2c0d56f359c (diff) | |
download | online_test-46c04c3cdd7c7cdb5acd9d8495934df26f469146.tar.gz online_test-46c04c3cdd7c7cdb5acd9d8495934df26f469146.tar.bz2 online_test-46c04c3cdd7c7cdb5acd9d8495934df26f469146.zip |
changed mode argument to bool type
-rw-r--r-- | yaksh/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yaksh/tests.py b/yaksh/tests.py index 71da672..a5b02a6 100644 --- a/yaksh/tests.py +++ b/yaksh/tests.py @@ -202,7 +202,7 @@ class QuizTestCases(unittest.TestCase): """Test to check if a copy of original quiz is created in godmode""" trial_quiz = Quiz.objects.create_trial_from_quiz(self.quiz1.id, self.creator, - "godmode" + True ) self.assertEqual(trial_quiz.description, "demo quiz_trial") self.assertTrue(trial_quiz.is_trial) @@ -217,7 +217,7 @@ class QuizTestCases(unittest.TestCase): """Test to check if a copy of original quiz is created in usermode""" trial_quiz = Quiz.objects.create_trial_from_quiz(self.quiz1.id, self.creator, - "usermode" + False ) self.assertEqual(trial_quiz.description, "demo quiz_trial") self.assertTrue(trial_quiz.is_trial) @@ -234,7 +234,7 @@ class QuizTestCases(unittest.TestCase): def test_delete_all_trial_quizzes_creator(self): Quiz.objects.create_trial_from_quiz(self.quiz1.id, self.creator, - "godmode" + True ) Quiz.objects.delete_all_trial_quizzes(self.creator) self.assertFalse(Quiz.objects.filter(course__creator=self.creator, @@ -245,7 +245,7 @@ class QuizTestCases(unittest.TestCase): self.trial_course.add_teachers(self.teacher) Quiz.objects.create_trial_from_quiz(self.quiz1.id, self.creator, - "godmode" + True ) Quiz.objects.delete_all_trial_quizzes(self.teacher) self.assertFalse(Quiz.objects.filter(course__teachers=self.teacher, |