docstr: Tests that calling history in before_trading_start gets us the correct
  values, which involves 1) calling data_portal.get_history_window as of
  the previous market minute, 2) getting adjustments between the previous
  market minute and the current time, and 3) applying those adjustments
docstr_tok: ["Tests","that","calling","history","in","before_trading_start","gets","us","the","correct","values",",","which","involves","1",")","calling","data_portal.get_history_window","as","of","the","previous","market","minute",",","2",")","getting","adjustments","between","the","previous","market","minute","and","the","current","time",",","and","3",")","applying","those","adjustments"]
code: def test_old_new_history_bts_paths(self):
      """
      Tests that calling history in before_trading_start gets us the correct
      values, which involves 1) calling data_portal.get_history_window as of
      the previous market minute, 2) getting adjustments between the previous
      market minute and the current time, and 3) applying those adjustments
      """
      algo = self.create_algo(history_bts_algo)
      algo.run()
  
      expected_vol_without_split = np.arange(386, 391) * 100
      expected_vol_with_split = np.arange(386, 391) * 200
  
      window = algo.recorded_vars["history"]
      np.testing.assert_array_equal(
          window[self.asset1].values, expected_vol_without_split
      )
      np.testing.assert_array_equal(
          window[self.asset2].values, expected_vol_without_split
      )
      np.testing.assert_array_equal(
          window[self.asset3].values, expected_vol_with_split
      )
  
imports: import warnings
  from mock import patch
  import numpy
  import pandas
  from pandas.core.common import PerformanceWarning
  from zipline.finance.trading import SimulationParameters
  from zipline.testing import MockDailyBarReader, create_daily_df_for_asset, create_minute_df_for_asset, str_to_seconds
  from zipline.testing.fixtures import WithCreateBarData, WithMakeAlgo, ZiplineTestCase
  from zipline.zipline_warnings import ZiplineDeprecationWarning
label_desc: Use image node_id 12 for calling the TestAPIShim obj's underlying member method code with example usage: obj.test_old_new_history_bts_paths() without return types