def testWeeklyRecurrence(self): self.assertEqual(_('Weekly'), render.recurrence(date.Recurrence('weekly')))
def testDailyRecurrence(self): self.assertEqual(_('Daily'), render.recurrence(date.Recurrence('daily')))
def testThreeDaily(self): self.assertEqual('Every 3 days', render.recurrence(date.Recurrence('daily', amount=3)))
def testThreeMonthly(self): self.assertEqual('Every 3 months', render.recurrence(date.Recurrence('monthly', 3)))
def testEveryOtherDay(self): self.assertEqual(_('Every other day'), render.recurrence(date.Recurrence('daily', amount=2)))
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 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 testThreeWeekly(self): self.assertEqual('Every 3 weeks', render.recurrence(date.Recurrence('weekly', amount=3)))
def testEveryOtherWeek(self): self.assertEqual( _('Every other week'), render.recurrence(date.Recurrence('weekly', amount=2)))
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)))
def testThreeWeekly(self): self.assertEqual( 'Every 3 weeks', render.recurrence(date.Recurrence('weekly', amount=3)))
def testNoRecurrence(self): self.assertEqual('', render.recurrence(date.Recurrence()))