summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaheshgudi2016-05-13 18:46:31 +0530
committermaheshgudi2016-05-27 12:43:12 +0530
commit669c84765fd79e5431ebe4fb20aa122133e0c5c1 (patch)
tree0cc3311896c870943b0ddc701de6bcbf0bf230e8
parent03b6bda58ec1af0ceb0de9f26d25bc342e550310 (diff)
downloadonline_test-669c84765fd79e5431ebe4fb20aa122133e0c5c1.tar.gz
online_test-669c84765fd79e5431ebe4fb20aa122133e0c5c1.tar.bz2
online_test-669c84765fd79e5431ebe4fb20aa122133e0c5c1.zip
fixed model manager method name changes in testcases
-rw-r--r--yaksh/tests.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/yaksh/tests.py b/yaksh/tests.py
index 120db60..5dc551f 100644
--- a/yaksh/tests.py
+++ b/yaksh/tests.py
@@ -363,8 +363,8 @@ class QuestionPaperTestCases(unittest.TestCase):
# test can_attempt_now(self):
self.assertFalse(self.question_paper.can_attempt_now(self.user))
- def test_create_trial_paper_test_quiz(self):
- trial_paper = QuestionPaper.objects.create_trial_paper_test_questions\
+ def test_create_trial_paper_to_test_quiz(self):
+ trial_paper = QuestionPaper.objects.create_trial_paper_to_test_quiz\
(trial_quiz,
self.question_paper.id
)
@@ -376,10 +376,11 @@ class QuestionPaperTestCases(unittest.TestCase):
self.question_paper.random_questions.all()
)
- def test_create_trial_paper_test_questions(self):
- trial_paper = QuestionPaper.objects.create_trial_paper(trial_quiz,
- self.questions_list
- )
+ def test_create_trial_paper_to_test_questions(self):
+ trial_paper = QuestionPaper.objects.\
+ create_trial_paper_to_test_questions(
+ trial_quiz, self.questions_list
+ )
self.assertEqual(trial_paper.quiz, trial_quiz)
self.assertEqual(self.questions_list,
self.question_paper.fixed_questions\
@@ -602,7 +603,7 @@ class CourseTestCases(unittest.TestCase):
self.assertTrue(trial_course.active)
self.assertEqual(trial_course.students.get(user=self.creator.id), self.creator)
self.assertTrue(trial_course.is_trial)
-
+
def test_delete_all_trial_courses(self):
Course.objects.create_trial_course(self.creator)
Course.objects.delete_all_trial_courses(self.creator)