def test_compound_interest_at_different_principle(self): ci = CompoundInterest(5, 1234, 20) self.assertEqual(ci.calculate_term_total_repayment(), 3070.59)
def test_compound_interest_over_2_years(self): ci = CompoundInterest(2, 1000, 10) self.assertEqual(ci.calculate_term_total_repayment(), 1210)
def test_compound_interest_at_different_rate(self): ci = CompoundInterest(3, 1000, 20) self.assertEqual(ci.calculate_term_total_repayment(), 1728)