diff options
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
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()) |