Beispiel #1
0
    def test_check_index_n_low_range(self):
        result = kivy_grade_calc.check_index(0, kivy_grade_calc.N_GRADE_RANGE)

        self.assertEqual(0, result)
Beispiel #2
0
    def test_check_index_bp_high_range(self):
        result = kivy_grade_calc.check_index(2.4, kivy_grade_calc.BP_GRADE_RANGE)

        self.assertEqual(40, result)
Beispiel #3
0
    def test_check_index_n_high_range(self):
        result = kivy_grade_calc.check_index(1.4, kivy_grade_calc.N_GRADE_RANGE)

        self.assertEqual(140, result)
Beispiel #4
0
    def test_check_index_pd_high_range(self):
        result = kivy_grade_calc.check_index(4.0, kivy_grade_calc.PD_GRADE_RANGE)

        self.assertEqual(50, result)