Exemplo n.º 1
0
 def test_should_return_next_deadline_for_monthly_frequency_for_date_on_deadline_for_day31_for_feb_with_29_days(
         self):
     month = Month(31)
     self.assertEqual(date(2012, 2, 29),
                      month.next_deadline_date(date(2012, 2, 3)))
Exemplo n.º 2
0
 def test_should_return_next_deadline_for_monthly_frequency_for_date_on_deadline_for_day31(
         self):
     month = Month(31)
     self.assertEqual(date(2011, 10, 31),
                      month.next_deadline_date(date(2011, 10, 3)))
Exemplo n.º 3
0
 def test_should_return_next_deadline_for_monthly_frequency_for_date_on_deadline_for_day31_for_asof_with_30_days_on_last_day_of_month(
         self):
     month = Month(31)
     self.assertEqual(date(2011, 10, 31),
                      month.next_deadline_date(date(2011, 9, 30)))
Exemplo n.º 4
0
 def test_should_return_next_deadline_for_monthly_frequency_for_date_after_deadline(
         self):
     month = Month(3)
     self.assertEqual(date(2011, 10, 3),
                      month.next_deadline_date(date(2011, 9, 9)))