def test_buy_close(self):
        (df_funds, ts_leverage, f_commision, f_slippage, f_borrow) = \
              qstksim.tradesim( self.df_alloc, self.df_close, 10000, 1, True, 0.02,
                           5, 0.02 )

        print 'Commision Costs : ' + str(f_commision)
        print 'Slippage : ' + str(f_slippage)
        print 'Short Borrowing Cost : ' + str(f_borrow)
        print 'Leverage : '	
        print ts_leverage
        np.testing.assert_approx_equal(df_funds[-1], \
             10000 * self.i_open_result, significant = 3)
        self.assertTrue(True)
        #self.assertTrue(abs(df_funds[-1] - 10000 * self.i_open_result)<=0.01)
Adds a route between URI path template and resource.
dataset/ETHPy150Open QuantSoftware/QuantSoftwareToolkit/QSTK/qstksim/tests/test_tradesim.py/Test.test_buy_close--crossover with--dataset/ETHPy150Open falconry/falcon/falcon/routing/compiled.py/CompiledRouter.add_route