def testSparplan2(self): k = Konto() with self.assertRaises(ValueError): k.sparPlan(N=1, K=-1)
def testSparplan3(self): k = Konto(zins=5) k.sparPlan(N=0, K=1000) self.assertAlmostEqual(k.stand(), 0)
def testSparplan(self): k = Konto(zins=2) k.sparPlan(K=100, N=12) self.assertAlmostEqual(k.stand(), 1368.0331522689812)