'Check TradingCalendar with defined start/end dates.'

def test_start_end(self):

    start = pd.Timestamp('2010-1-3', tz='UTC')
    end = pd.Timestamp('2010-1-10', tz='UTC')
    calendar = NYSEExchangeCalendar(start=start, end=end)
    expected_first = pd.Timestamp('2010-1-4', tz='UTC')
    expected_last = pd.Timestamp('2010-1-8', tz='UTC')
    self.assertTrue((calendar.first_trading_session == expected_first))
    self.assertTrue((calendar.last_trading_session == expected_last))
