def testMakePayment(self): myDebt = Debt("Lukas' Debt", 1000) expected = 900 myDebt.makePayment(100) actual = myDebt.getAmount() self.assertEqual(expected, actual)
def testIncreaseDebt(self): myDebt = Debt("Lukas' Debt", 1000) expected =1100 myDebt.increaseDebt(100) actual = myDebt.getAmount() self.assertEqual(expected, actual)
def testInitAmount(self): myDebt = Debt("Lukas' Debt", 1000) expected = 1000 actual = myDebt.getAmount() self.assertEqual(expected, actual)