docstr: Until 2013, the market closed early the Friday after an
  Independence Day on Thursday.  Since then, the early close is on
  Wednesday.
docstr_tok: ["Until","2013",",","the","market","closed","early","the","Friday","after","an","Independence","Day","on","Thursday",".","Since","then",",","the","early","close","is","on","Wednesday","."]
code: def test_early_close_independence_day_thursday(self):
      """
      Until 2013, the market closed early the Friday after an
      Independence Day on Thursday.  Since then, the early close is on
      Wednesday.
      """
      #      July 2002
      # Su Mo Tu We Th Fr Sa
      #     1  2  3  4  5  6
      #  7  8  9 10 11 12 13
      # 14 15 16 17 18 19 20
      # 21 22 23 24 25 26 27
      # 28 29 30 31
      wednesday_before = pd.Timestamp("7/3/2002 3:00PM", tz="EST")
      friday_after_open = pd.Timestamp("7/5/2002 11:00AM", tz="EST")
      friday_after = pd.Timestamp("7/5/2002 3:00PM", tz="EST")
      self.assertTrue(self.calendar.is_open_on_minute(wednesday_before))
      self.assertTrue(
          self.calendar.is_open_on_minute(friday_after_open)
      )
      self.assertFalse(self.calendar.is_open_on_minute(friday_after))
  
      #      July 2013
      # Su Mo Tu We Th Fr Sa
      #     1  2  3  4  5  6
      #  7  8  9 10 11 12 13
      # 14 15 16 17 18 19 20
      # 21 22 23 24 25 26 27
      # 28 29 30 31
      wednesday_before = pd.Timestamp("7/3/2013 3:00PM", tz="EST")
      friday_after_open = pd.Timestamp("7/5/2013 11:00AM", tz="EST")
      friday_after = pd.Timestamp("7/5/2013 3:00PM", tz="EST")
      self.assertFalse(
          self.calendar.is_open_on_minute(wednesday_before)
      )
      self.assertTrue(
          self.calendar.is_open_on_minute(friday_after_open)
      )
      self.assertTrue(self.calendar.is_open_on_minute(friday_after))
  
file_path: catalyst/tests/calendars/test_nyse_calendar.py
imports: from unittest import TestCase
  import pandas
  from .test_trading_calendar import ExchangeCalendarTestBase
  from catalyst.utils.calendars.exchange_calendar_nyse import NYSEExchangeCalendar
label_desc: Use image node_id 6 for calling the NYSECalendarTestCase obj's underlying member method code with example usage: obj.test_early_close_independence_day_thursday() without return types