Esempio n. 1
0
 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))
Esempio n. 2
0
 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))
Esempio n. 3
0
 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))
Esempio n. 4
0
 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))
Esempio n. 5
0
 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))
Esempio n. 6
0
 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))
Esempio n. 7
0
 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))
Esempio n. 8
0
 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))