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