# test_backtest.py: added TestPortfolio, adjusted other tests to changes
in portfolio.py
# portfolio.py: refact