def test_calculate_exam_enrollment_with_progress(self):
     ex_enrol = [self.exam_enrollment]
     progress = exam_enrollment.calculate_exam_enrollment_progress(ex_enrol)
     self.assertTrue(0 <= progress <= 100)
Ejemplo n.º 2
0
 def progress_int(self):
     return exam_enrollment.calculate_exam_enrollment_progress(self.enrollments)
 def test_calculate_exam_enrollment_without_progress(self):
     self.assertEqual(exam_enrollment.calculate_exam_enrollment_progress(None), 0)
Ejemplo n.º 4
0
 def progress_int(self):
     return exam_enrollment.calculate_exam_enrollment_progress(self.enrollments)