Exemplo n.º 1
0
 def testWeeklyRecurrence(self):
     self.assertEqual(_('Weekly'),
                      render.recurrence(date.Recurrence('weekly')))
 def testDailyRecurrence(self):
     self.assertEqual(_('Daily'), 
                      render.recurrence(date.Recurrence('daily')))
Exemplo n.º 3
0
 def testDailyRecurrence(self):
     self.assertEqual(_('Daily'),
                      render.recurrence(date.Recurrence('daily')))
Exemplo n.º 4
0
 def testThreeDaily(self):
     self.assertEqual('Every 3 days',
                      render.recurrence(date.Recurrence('daily', amount=3)))
Exemplo n.º 5
0
 def testThreeMonthly(self):
     self.assertEqual('Every 3 months',
                      render.recurrence(date.Recurrence('monthly', 3)))
Exemplo n.º 6
0
 def testEveryOtherDay(self):
     self.assertEqual(_('Every other day'),
                      render.recurrence(date.Recurrence('daily', amount=2)))
Exemplo n.º 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)))
Exemplo n.º 10
0
 def testEveryOtherDay(self):
     self.assertEqual(_('Every other day'), 
                      render.recurrence(date.Recurrence('daily', amount=2)))
Exemplo n.º 11
0
 def testEveryOtherWeek(self):
     self.assertEqual(_('Every other week'), 
                      render.recurrence(date.Recurrence('weekly', amount=2)))
Exemplo n.º 12
0
 def testYearlyRecurrence(self):
     self.assertEqual(_('Yearly'), 
                      render.recurrence(date.Recurrence('yearly')))
Exemplo n.º 13
0
 def testMonthlyRecurrence(self):
     self.assertEqual(_('Monthly'), 
                      render.recurrence(date.Recurrence('monthly')))
Exemplo n.º 14
0
 def testWeeklyRecurrence(self):
     self.assertEqual(_('Weekly'), 
                      render.recurrence(date.Recurrence('weekly')))
Exemplo n.º 15
0
 def testMonthlyRecurrence(self):
     self.assertEqual(_('Monthly'),
                      render.recurrence(date.Recurrence('monthly')))
Exemplo n.º 16
0
 def testThreeDaily(self):
     self.assertEqual('Every 3 days', 
                      render.recurrence(date.Recurrence('daily', amount=3))) 
Exemplo n.º 17
0
 def testYearlyRecurrence(self):
     self.assertEqual(_('Yearly'),
                      render.recurrence(date.Recurrence('yearly')))
Exemplo n.º 18
0
 def testThreeWeekly(self):
     self.assertEqual('Every 3 weeks', 
                      render.recurrence(date.Recurrence('weekly', amount=3))) 
Exemplo n.º 19
0
 def testEveryOtherWeek(self):
     self.assertEqual(
         _('Every other week'),
         render.recurrence(date.Recurrence('weekly', amount=2)))
Exemplo n.º 20
0
 def testThreeMonthly(self):
     self.assertEqual('Every 3 months', 
                      render.recurrence(date.Recurrence('monthly', 3))) 
Exemplo n.º 21
0
 def testEveryOtherYear(self):
     self.assertEqual(
         _('Every other year'),
         render.recurrence(date.Recurrence('yearly', amount=2)))
Exemplo n.º 22
0
 def testThreeYearly(self):
     self.assertEqual('Every 3 years', 
                      render.recurrence(date.Recurrence('yearly', 3)))
Exemplo n.º 23
0
 def testThreeWeekly(self):
     self.assertEqual(
         'Every 3 weeks',
         render.recurrence(date.Recurrence('weekly', amount=3)))
Exemplo n.º 24
0
 def testNoRecurrence(self):
     self.assertEqual('', render.recurrence(date.Recurrence()))
Exemplo n.º 25
0
 def testThreeYearly(self):
     self.assertEqual('Every 3 years',
                      render.recurrence(date.Recurrence('yearly', 3)))
Exemplo n.º 26
0
 def testNoRecurrence(self):
     self.assertEqual('', render.recurrence(date.Recurrence()))