def testExpirationDateCausedByServicePeriodDateException(self):
    # Test with no validity dates specified in feed_info.txt
    self.prepareArchiveContents(
        self.two_weeks_ago, self.one_week, # calendar
        self.two_weeks,                    # calendar_dates
        "", "")                            # feed_info
    self.MakeLoaderAndLoad(self.problems)
    e = self.accumulator.PopException("ExpirationDate")
    self.assertTrue("calendar_dates.txt" in e.expiration_origin_file)
    self.accumulator.AssertNoMoreExceptions()
    # Test with good validity dates specified in feed_info.txt
    self.prepareArchiveContents(
        self.two_weeks_ago, self.one_week,   # calendar
        self.two_weeks,                      # 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.testExpirationDateCausedByServicePeriodDateException/original