Ejemplo n.º 1
0
 def testOneValueArrayNumpyNPVreturnsNPV(self):
     npsy = NumpySciPy()
     array = [500]
     actual = npsy.numpyNPV(array,0.05)
     expected = 500.00
     self.assertEqual(expected,actual)
Ejemplo n.º 2
0
 def testNumpyNPVreturnsNPV(self):
     npsy = NumpySciPy()
     array = [500,600,522]
     actual = npsy.numpyNPV(array,0.01)
     expected = 1605.77
     self.assertEqual(expected,actual)