def test_should_return_current_deadline_for_monthly_frequency_for_date_after_deadline(self):
     month = Month(3)
     self.assertEqual(date(2011,9,3) ,month.current_deadline_date(date(2011,9,9)))
 def test_should_return_current_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,9,30) ,month.current_deadline_date(date(2011,9,30)))
 def test_should_return_current_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.current_deadline_date(date(2012,3,3)))
 def test_should_return_current_deadline_for_monthly_frequency_for_date_on_deadline_for_day31(self):
     month = Month(31)
     self.assertEqual(date(2011,9,30) ,month.current_deadline_date(date(2011,10,3)))