Ejemplo n.º 1
0
 def test_returns_compound_interest__scenario_1(self):
     compound_interest = CompoundInterest(100, 10, 20)
     self.assertEqual(732.81, compound_interest.calculate_final_investment())
Ejemplo n.º 2
0
 def test_returns_compound_interest__scenario_3(self):
     compound_interest = CompoundInterest(100000, 5, 8)
     self.assertEqual(149,058.55, compound_interest.calculate_final_investment())
Ejemplo n.º 3
0
 def test_returns_compound_interest__scenario_4(self):
     compound_interest = CompoundInterest(0, 10, 1)
     self.assertEqual(0.00, compound_interest.calculate_final_investment())
Ejemplo n.º 4
0
 def test_returns_compound_interest__scenario_2(self):
     compound_interest = CompoundInterest(100, 6, 10)
     self.assertEqual(181.94, compound_interest.calculate_final_investment())