def test_cumuReturn(self): testObj_2 = InvSimulation(200, 500) cumu_test = testObj_2.cumuReturn() self.assertTrue(np.mean(cumu_test) <= 2000 and np.mean(cumu_test) >= 0) self.assertEqual(len(cumu_test), 500)
def test_cumuReturn(self): testObj_2 = InvSimulation(200, 500) cumu_test = testObj_2.cumuReturn() self.assertTrue(np.mean(cumu_test)<=2000 and np.mean(cumu_test)>= 0) self.assertEqual(len(cumu_test), 500)