def test_total_charge_duration_1_type_fiction(self): duration = 10 bookType = "fiction" expected = 30 tc = totalCharge(duration, bookType) self.assertEqual(expected, tc)
def test_total_charge_duration_1_type_regular(self): duration = 1 bookType = "regular" expected = 2 tc = totalCharge(duration, bookType) self.assertEqual(expected, tc)
def test_total_charge_duration_56_type_novel(self): duration = 56 bookType = "novel" expected = 85.5 tc = totalCharge(duration, bookType) self.assertEqual(expected, tc)