summaryrefslogtreecommitdiff
path: root/testapp/exam/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/exam/tests.py')
-rw-r--r--testapp/exam/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/testapp/exam/tests.py b/testapp/exam/tests.py
index 2a5f1e7..b2ba36f 100644
--- a/testapp/exam/tests.py
+++ b/testapp/exam/tests.py
@@ -138,7 +138,9 @@ class QuestionPaperTestCases(unittest.TestCase):
def test_update_total_marks(self):
""" Test update_total_marks() method of Question Paper"""
- self.assertEqual(self.question_paper.update_total_marks(), 15)
+ self.assertEqual(self.question_paper.total_marks, 0)
+ self.question_paper.update_total_marks()
+ self.assertEqual(self.question_paper.total_marks, 15)
def test_get_random_questions(self):
""" Test get_random_questions() method of Question Paper"""