Ejemplo n.º 1
0
    def test_total_notes_success(self):
        report = Report('João Lucas')
        totalMath = report.math_total(8.0, 2.0, 4.0, 5.0)
        totalEnglish = report.english_total(8.0, 10.0, 4.0, 5.0)

        result = report.total_notes(totalMath, totalEnglish)
        self.assertEqual(result, '🔥 você foi aprovado')
Ejemplo n.º 2
0
    def test_total_notes_failed(self):
        report = Report('João Lucas')
        totalMath = report.math_total(0.0, 2.0, 0.0, 1.0)
        totalEnglish = report.english_total(0.0, 10.0, 1.0, 2.0)

        result = report.total_notes(totalMath, totalEnglish)
        self.assertEqual(result, '😭 infelizmente você foi reprovado')
Ejemplo n.º 3
0
 def test_english_total(self):
     report = Report('João Lucas')
     total = report.english_total(8.0, 10.0, 4.0, 5.0)
     self.assertEqual(total, 27.0)