def testFutureServiceCausedByServicePeriodDateException(self):
    # Test with no validity dates specified in feed_info.txt
    self.prepareArchiveContents(
        self.two_weeks, self.two_months, # calendar
        self.one_week,                   # calendar_dates
        "", "")                          # feed_info
    self.MakeLoaderAndLoad(self.problems)
    e = self.accumulator.PopException("FutureService")
    self.assertTrue("calendar_dates.txt" in e.start_date_origin_file)
    self.accumulator.AssertNoMoreExceptions()
    # Test with good validity dates specified in feed_info.txt
    self.prepareArchiveContents(
        self.two_weeks, self.two_months,     # calendar
        self.one_week,                       # calendar_dates
        self.two_weeks_ago, self.two_months) # feed_info
    self.MakeLoaderAndLoad(self.problems)
    self.accumulator.AssertNoMoreExceptions()
dataset/ETHPy150Open google/transitfeed/tests/transitfeed/testschedule.py/ScheduleStartAndExpirationDatesTestCase.testFutureServiceCausedByServicePeriodDateException/original