예제 #1
0
 def test_user_with_passing_marks_and_achieved_marks_equal(self):
     # Mocking the grades.grade
     # If user's achieved passing marks are equal to the required passing
     # marks then it will return True
     self.assertTrue(
         views.is_course_passed(self.course, None, self.student,
                                self.request))
예제 #2
0
 def test_user_with_passing_marks_and_achieved_marks_equal(self):
     # Mocking the grades.grade
     # If user's achieved passing marks are equal to the required passing
     # marks then it will return True
     self.assertTrue(views.is_course_passed(self.course, None, self.student, self.request))
예제 #3
0
 def test_user_fail_if_percent_appears_below_passing_point(self):
     # Mocking the grades.grade
     # If user has below passing marks then False will return
     self.assertFalse(views.is_course_passed(self.course, None, self.student, self.request))
예제 #4
0
 def test_user_pass_if_percent_appears_above_passing_point(self):
     # Mocking the grades.grade
     # If user has above passing marks then True will return
     self.assertTrue(views.is_course_passed(self.course, None, self.student, self.request))
예제 #5
0
 def test_user_fails_if_not_clear_exam(self):
     # If user has not grade then false will return
     self.assertFalse(views.is_course_passed(self.course, None, self.student, self.request))
예제 #6
0
 def test_user_fail_if_percent_appears_below_passing_point(self):
     # Mocking the grades.grade
     # If user has below passing marks then False will return
     self.assertFalse(
         views.is_course_passed(self.course, None, self.student,
                                self.request))
예제 #7
0
 def test_user_pass_if_percent_appears_above_passing_point(self):
     # Mocking the grades.grade
     # If user has above passing marks then True will return
     self.assertTrue(
         views.is_course_passed(self.course, None, self.student,
                                self.request))
예제 #8
0
 def test_user_fails_if_not_clear_exam(self):
     # If user has not grade then false will return
     self.assertFalse(
         views.is_course_passed(self.course, None, self.student,
                                self.request))