'Test buy_and_hold
Begins at 2000-01-01 00:00:00
End at 2014-01-01 00:00:00'

def test_buy_and_hold_backtest(self):

    tickers = ['SPY']
    filename = os.path.join(settings.TEST.OUTPUT_DIR, 'buy_and_hold_backtest.pkl')
    results = examples.buy_and_hold_backtest.run(self.config, self.testing, tickers, filename)
    for (key, expected) in [('sharpe', 0.25234757), ('max_drawdown_pct', 0.79589309)]:
        value = float(results[key])
        self.assertAlmostEqual(expected, value)
