docstr: Prevent regression on a bug where the passing the same assets, but
  in a different order would return a history window with the values,
  but not the keys, in order of the first history call.
docstr_tok: ["Prevent","regression","on","a","bug","where","the","passing","the","same","assets",",","but","in","a","different","order","would","return","a","history","window","with","the","values",",","but","not","the","keys",",","in","order","of","the","first","history","call","."]
code: def test_history_window_different_order(self):
      """
      Prevent regression on a bug where the passing the same assets, but
      in a different order would return a history window with the values,
      but not the keys, in order of the first history call.
      """
      # Both ASSET1 and ASSET2 have trades on this date.
      day = self.ASSET2.end_date
  
      window_1 = self.data_portal.get_history_window(
          [self.ASSET1, self.ASSET2],
          day,
          4,
          "1d",
          "close",
          "daily",
      )
  
      window_2 = self.data_portal.get_history_window(
          [self.ASSET2, self.ASSET1],
          day,
          4,
          "1d",
          "close",
          "daily",
      )
  
      np.testing.assert_almost_equal(
          window_1[self.ASSET1].values, window_2[self.ASSET1].values
      )
      np.testing.assert_almost_equal(
          window_1[self.ASSET2].values, window_2[self.ASSET2].values
      )
  
imports: from textwrap import dedent
  from nose_parameterized import parameterized
  import numpy
  from numpy import nan
  import pandas
  from six import iteritems
  from catalyst import TradingAlgorithm
  from catalyst._protocol import handle_non_market_minutes, BarData
  from catalyst.assets import Asset, Equity
  from catalyst.errors import HistoryInInitialize, HistoryWindowStartsBeforeData
  from catalyst.finance.trading import SimulationParameters
  from catalyst.finance.asset_restrictions import NoRestrictions
  from catalyst.testing import create_minute_df_for_asset, str_to_seconds, MockDailyBarReader
  from catalyst.testing.fixtures import WithCreateBarData, WithDataPortal, CatalystTestCase, alias
label_desc: Use image node_id 11 for calling the DailyEquityHistoryTestCase obj's underlying member method code with example usage: obj.test_history_window_different_order() without return types