class GradeTests(unittest.TestCase): def setUp(self): self.g = Grade("A") def test_get_grade(self): self.assertEqual(5, self.g.get_grade()) def test_get_grade_with_sign(self): grade = Grade("B+") self.assertEqual(4.3, grade.get_grade())
def test_get_grade_with_sign(self): grade = Grade("B+") self.assertEqual(4.3, grade.get_grade())