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

        k.sparPlan(K=100, N=12)

        self.assertAlmostEqual(k.stand(), 1368.0331522689812)