code: def test_minutes_in_range(self):
      sessions = self._get_session_block()
  
      (
          first_open,
          first_close,
      ) = self.calendar.open_and_close_for_session(sessions[0])
      minute_before_first_open = first_open - self.one_minute
  
      (
          middle_open,
          middle_close,
      ) = self.calendar.open_and_close_for_session(sessions[1])
  
      last_open, last_close = self.calendar.open_and_close_for_session(
          sessions[-1]
      )
      minute_after_last_close = last_close + self.one_minute
  
      # get all the minutes between first_open and last_close
      minutes1 = self.calendar.minutes_in_range(first_open, last_close)
      minutes2 = self.calendar.minutes_in_range(
          minute_before_first_open, minute_after_last_close
      )
  
      if self.GAPS_BETWEEN_SESSIONS:
          np.testing.assert_array_equal(minutes1, minutes2)
      else:
          # if no gaps, then minutes2 should have 2 extra minutes
          np.testing.assert_array_equal(minutes1, minutes2[1:-1])
  
      # manually construct the minutes
      all_minutes = np.concatenate(
          [
              pd.date_range(
                  start=first_open, end=first_close, freq="min"
              ),
              pd.date_range(
                  start=middle_open, end=middle_close, freq="min"
              ),
              pd.date_range(
                  start=last_open, end=last_close, freq="min"
              ),
          ]
      )
  
      np.testing.assert_array_equal(all_minutes, minutes1)
  
imports: from datetime import time
  from os.path import abspath, dirname, join
  from unittest import TestCase
  import numpy
  import pandas
  from nose_parameterized import parameterized
  from pandas import read_csv
  from pandas.tslib import Timedelta
  from pandas.util.testing import assert_index_equal
  from pytz import timezone
  from toolz import concat
  from catalyst.errors import CalendarNameCollision, InvalidCalendarName
  from catalyst.testing.predicates import assert_equal
  from catalyst.utils.calendars import deregister_calendar, get_calendar, register_calendar
  from catalyst.utils.calendars.calendar_utils import _default_calendar_aliases, _default_calendar_factories, register_calendar_type
  from catalyst.utils.calendars.trading_calendar import days_at_time, TradingCalendar
label_desc: Use image node_id 16 for calling the ExchangeCalendarTestBase obj's underlying member method code with example usage: obj.test_minutes_in_range() without return types