예제 #1
0
 def testWeeklyRecurrence(self):
     self.assertEqual(_('Weekly'),
                      render.recurrence(date.Recurrence('weekly')))
 def testDailyRecurrence(self):
     self.assertEqual(_('Daily'), 
                      render.recurrence(date.Recurrence('daily')))
예제 #3
0
 def testDailyRecurrence(self):
     self.assertEqual(_('Daily'),
                      render.recurrence(date.Recurrence('daily')))
예제 #4
0
 def testThreeDaily(self):
     self.assertEqual('Every 3 days',
                      render.recurrence(date.Recurrence('daily', amount=3)))
예제 #5
0
 def testThreeMonthly(self):
     self.assertEqual('Every 3 months',
                      render.recurrence(date.Recurrence('monthly', 3)))
예제 #6
0
 def testEveryOtherDay(self):
     self.assertEqual(_('Every other day'),
                      render.recurrence(date.Recurrence('daily', amount=2)))
예제 #7
0
 def testEveryOtherMonth(self):
     self.assertEqual(
         _('Every other month'),
         render.recurrence(date.Recurrence('monthly', amount=2)))
 def testEveryOtherMonth(self):
     self.assertEqual(_('Every other month'), 
                      render.recurrence(date.Recurrence('monthly', amount=2)))
 def testEveryOtherYear(self):
     self.assertEqual(_('Every other year'), 
                      render.recurrence(date.Recurrence('yearly', amount=2)))
 def testEveryOtherDay(self):
     self.assertEqual(_('Every other day'), 
                      render.recurrence(date.Recurrence('daily', amount=2)))
 def testEveryOtherWeek(self):
     self.assertEqual(_('Every other week'), 
                      render.recurrence(date.Recurrence('weekly', amount=2)))
 def testYearlyRecurrence(self):
     self.assertEqual(_('Yearly'), 
                      render.recurrence(date.Recurrence('yearly')))
 def testMonthlyRecurrence(self):
     self.assertEqual(_('Monthly'), 
                      render.recurrence(date.Recurrence('monthly')))
 def testWeeklyRecurrence(self):
     self.assertEqual(_('Weekly'), 
                      render.recurrence(date.Recurrence('weekly')))
예제 #15
0
 def testMonthlyRecurrence(self):
     self.assertEqual(_('Monthly'),
                      render.recurrence(date.Recurrence('monthly')))
 def testThreeDaily(self):
     self.assertEqual('Every 3 days', 
                      render.recurrence(date.Recurrence('daily', amount=3))) 
예제 #17
0
 def testYearlyRecurrence(self):
     self.assertEqual(_('Yearly'),
                      render.recurrence(date.Recurrence('yearly')))
 def testThreeWeekly(self):
     self.assertEqual('Every 3 weeks', 
                      render.recurrence(date.Recurrence('weekly', amount=3))) 
예제 #19
0
 def testEveryOtherWeek(self):
     self.assertEqual(
         _('Every other week'),
         render.recurrence(date.Recurrence('weekly', amount=2)))
 def testThreeMonthly(self):
     self.assertEqual('Every 3 months', 
                      render.recurrence(date.Recurrence('monthly', 3))) 
예제 #21
0
 def testEveryOtherYear(self):
     self.assertEqual(
         _('Every other year'),
         render.recurrence(date.Recurrence('yearly', amount=2)))
 def testThreeYearly(self):
     self.assertEqual('Every 3 years', 
                      render.recurrence(date.Recurrence('yearly', 3)))
예제 #23
0
 def testThreeWeekly(self):
     self.assertEqual(
         'Every 3 weeks',
         render.recurrence(date.Recurrence('weekly', amount=3)))
예제 #24
0
 def testNoRecurrence(self):
     self.assertEqual('', render.recurrence(date.Recurrence()))
예제 #25
0
 def testThreeYearly(self):
     self.assertEqual('Every 3 years',
                      render.recurrence(date.Recurrence('yearly', 3)))
 def testNoRecurrence(self):
     self.assertEqual('', render.recurrence(date.Recurrence()))