summaryrefslogtreecommitdiff
path: root/yaksh/tests.py
diff options
context:
space:
mode:
authormaheshgudi2016-07-05 17:50:31 +0530
committermaheshgudi2016-07-05 17:50:31 +0530
commit9c61c84194e6b52913dfc284765a7b7bd77201ad (patch)
tree384f452958efad8cbc1cdc1a518f6fc2c09087e9 /yaksh/tests.py
parent1276c2840c3c7f7521c98574dea302160611f79d (diff)
downloadonline_test-9c61c84194e6b52913dfc284765a7b7bd77201ad.tar.gz
online_test-9c61c84194e6b52913dfc284765a7b7bd77201ad.tar.bz2
online_test-9c61c84194e6b52913dfc284765a7b7bd77201ad.zip
will not create trial paper object if the quiz has expired or is inactive
Diffstat (limited to 'yaksh/tests.py')
-rw-r--r--yaksh/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/tests.py b/yaksh/tests.py
index bf3be04..d5dfb89 100644
--- a/yaksh/tests.py
+++ b/yaksh/tests.py
@@ -194,7 +194,7 @@ class QuizTestCases(unittest.TestCase):
)
self.assertEqual(trial_quiz.course, self.trial_course)
self.assertEqual(trial_quiz.duration, 1000)
- self.assertEqual(trial_quiz.description, "trial_quiz")
+ self.assertEqual(trial_quiz.description, "trial_questions")
self.assertTrue(trial_quiz.is_trial)
self.assertEqual(trial_quiz.time_between_attempts, 0)
@@ -204,7 +204,7 @@ class QuizTestCases(unittest.TestCase):
self.creator,
True
)
- self.assertEqual(trial_quiz.description, "trial_orig_id_1")
+ self.assertEqual(trial_quiz.description, "Trial_orig_id_1_godmode")
self.assertTrue(trial_quiz.is_trial)
self.assertEqual(trial_quiz.duration, 1000)
self.assertTrue(trial_quiz.active)
@@ -219,7 +219,7 @@ class QuizTestCases(unittest.TestCase):
self.creator,
False
)
- self.assertEqual(trial_quiz.description, "trial_orig_id_2")
+ self.assertEqual(trial_quiz.description, "Trial_orig_id_2_usermode")
self.assertTrue(trial_quiz.is_trial)
self.assertEqual(trial_quiz.duration, self.quiz2.duration)
self.assertEqual(trial_quiz.active, self.quiz2.active)