def test_simulate_one_share(self): ''' Test that simulation of 1-day-return for 1 share returns 2 * value when randnum is fixed as > 0.49 (doubles your investment) ''' position_1000 = InvestmentPositions(1, 1000) self.assertEqual(position_1000.simulate_one_share(), 2000)
def test_simulate_one_share(self): ''' Test that simulation of 1-day-return for 1 share returns 2 * value when randnum is fixed as > 0.49 (doubles your investment) ''' position_1000 = InvestmentPositions(1, 1000) self.assertEqual(position_1000.simulate_one_share(), 2000)