def testGettingExpirationDateWhenDateInSummerVacation(self): self.logger.debug("Testing expiration date with no vacation span in the spring") d = date(2013, 7, 1) self.assertEqual(date(2013, 9, 14), _get_with_duration_and_vacation(d))
def testGettingExpirationDateWithWinterVacation(self): self.logger.debug("Testing expiration date with the summer vacation span") d = date(2013, 11, 15) self.assertEqual(date(2014, 1, 29), _get_with_duration_and_vacation(d))
def testGettingExpirationDateWhenDateBetweenStartOfWinterVacationAndNewYears(self): self.logger.debug("Testing expiration date with no vacation span in the spring") d = date(2013, 12, 15) self.assertEqual(date(2014, 2, 14), _get_with_duration_and_vacation(d))
def testGettingExpirationDateWithNoVacationInFall(self): self.logger.debug("Testing expiration date with no vacation span in the spring") d = date(2013, 9, 1) self.assertEqual(date(2013, 10, 1), _get_with_duration_and_vacation(d))
def test_getting_expiration_date_when_date_in_summer_vacation(self): self.logger.debug( "Testing expiration date with no vacation span in the spring") d = date(2013, 7, 1) self.assertEqual(date(2013, 9, 14), _get_with_duration_and_vacation(d))
def test_getting_expiration_date_when_date_between_start_of_winter_vacation_and_new_years( self, ): self.logger.debug( "Testing expiration date with no vacation span in the spring") d = date(2013, 12, 15) self.assertEqual(date(2014, 2, 14), _get_with_duration_and_vacation(d))
def test_getting_expiration_date_eith_no_vacation_in_fall(self): self.logger.debug( "Testing expiration date with no vacation span in the spring") d = date(2013, 9, 1) self.assertEqual(date(2013, 10, 1), _get_with_duration_and_vacation(d))
def test_setting_expiration_date_with_summer_vacation(self): self.logger.debug( "Testing expiration date with the summer vacation span") d = date(2013, 5, 15) self.assertEqual(date(2013, 8, 28), _get_with_duration_and_vacation(d))