From 6517faffb2a9d1bef316700380df46abfb1c93b6 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Fri, 1 Apr 2016 14:40:57 +0530 Subject: added a testcase since get_questions_for_answerpaper private method is removed from the tests. --- yaksh/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yaksh/tests.py b/yaksh/tests.py index 0d5380a..bdc9584 100644 --- a/yaksh/tests.py +++ b/yaksh/tests.py @@ -235,6 +235,8 @@ class QuestionPaperTestCases(unittest.TestCase): """ Test get_random_questions() method of Question Paper""" random_questions_set_1 = self.question_set_1.get_random_questions() random_questions_set_2 = self.question_set_2.get_random_questions() + total_random_questions = len(random_questions_set_1 + random_questions_set_2) + self.assertEqual(total_random_questions, 5) # To check whether random questions are from random_question_set questions_set_1 = set(self.question_set_1.questions.all()) -- cgit