Esempio n. 1
0
 def testNextDateWithInfiniteDate(self):
     self.assertEqual(date.Date(), date.next(date.Date(), 'monthly'))
Esempio n. 2
0
 def nextRecurrence(self, aDate):
     return date.next(aDate, self.recurrence(True))
Esempio n. 3
0
 def testFirstDayOfDecember(self):
     self.assertEqual(date.Date(2001,1,1),
                      date.next(date.Date(2000,12,1), 'monthly'))
Esempio n. 4
0
 def testLastDayOf30DayMonth(self):
     self.assertEqual(date.Date(2000,5,30), 
                      date.next(date.Date(2000,4,30), 'monthly'))
Esempio n. 5
0
 def testFirstDayOf31DayMonth(self):
     self.assertEqual(date.Date(2000,2,1), 
                      date.next(date.Date(2000,1,1), 'monthly'))
Esempio n. 6
0
 def testNextDateTwice(self):
     January8 = date.next(self.January1, 'weekly')
     self.assertEqual(self.January15, date.next(January8, 'weekly'))
Esempio n. 7
0
 def testNextDate(self):
     self.assertEqual(self.January8, 
                      date.next(self.January1, 'weekly'))
Esempio n. 8
0
 def testNextDateTwice(self):
     today = date.next(date.Yesterday(), 'daily')
     self.assertEqual(date.Tomorrow(), date.next(today, 'daily'))
Esempio n. 9
0
 def testNextDate(self):
     self.assertEqual(date.Tomorrow(), date.next(date.Today(), 'daily'))