'Until 2013, the market closed early the Friday after an
Independence Day on Thursday.  Since then, the early close is on
Wednesday.'

def test_early_close_independence_day_thursday(self):

    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))
    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))
