code: def test_history(self):
      with warnings.catch_warnings(record=True) as w:
          warnings.simplefilter("ignore", PerformanceWarning)
          warnings.simplefilter("default", ZiplineDeprecationWarning)
  
          sim_params = self.sim_params.create_new(
              self.sim_params.sessions[1], self.sim_params.end_session
          )
  
          algo = self.create_algo(history_algo, sim_params=sim_params)
          algo.run()
  
          self.assertEqual(1, len(w))
          self.assertEqual(ZiplineDeprecationWarning, w[0].category)
          self.assertEqual("<string>", w[0].filename)
          self.assertEqual(8, w[0].lineno)
          self.assertEqual(
              "The `history` method is deprecated.  Use "
              "`data.history` instead.",
              str(w[0].message),
          )
  
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 11 for calling the TestAPIShim obj's underlying member method code with example usage: obj.test_history() without return types