def test_monthend_beats_5th_sat(self): """ 14 """ dday = date(2040, 3, 31) expected = 'mar' tsto = Grandad(dday, weekly_day=5) result = tsto.label() self.assertEqual(result, expected)
def test_force_sat_weekly_day(self): """ 13 """ dday = date(2040, 3, 24) expected = 'sat_4' tsto = Grandad(dday, weekly_day=5) result = tsto.label() self.assertEqual(result, expected)
def test_2nd_friday(self): """ 4 """ dday = date(2040, 3, 9) expected = 'fri_2' tsto = Grandad(dday) result = tsto.label() self.assertEqual(result, expected)
def test_5th_friday(self): """ 1 """ dday = date(2040, 3, 30) expected = 'fri_5' tsto = Grandad(dday) result = tsto.label() self.assertEqual(result, expected)
def test_default_eoy(self): """ 8 """ dday = date(2040, 12, 31) expected = 'dec_2040' tsto = Grandad(dday) result = tsto.label() self.assertEqual(result, expected)
def test_monthend_mar(self): """ 6 """ dday = date(2040, 3, 31) expected = 'mar' tsto = Grandad(dday) result = tsto.label() self.assertEqual(result, expected)
def test_5th_friday_a(self): """ 25 """ dday = date(2040, 3, 30) expected = 'a_fri_5' tsto = Grandad(dday, server_name='a') result = tsto.label() self.assertEqual(result, expected)
def test_monthend_feb(self): """ 10 """ dday = date(2040, 2, 28) expected = 'tue' tsto = Grandad(dday) result = tsto.label() self.assertEqual(result, expected)
def test_monthend_mar_a(self): """ 30 """ dday = date(2040, 3, 31) expected = 'a_mar' tsto = Grandad(dday, server_name='a') result = tsto.label() self.assertEqual(result, expected)
def test_3rd_friday_a(self): """ 27 """ dday = date(2010, 3, 19) expected = 'a_fri_3' tsto = Grandad(dday, server_name='a') result = tsto.label() self.assertEqual(result, expected)
def test_default_eoy_a(self): """ 32 """ dday = date(2040, 12, 31) expected = 'a_dec_2040' tsto = Grandad(dday, server_name='a') result = tsto.label() self.assertEqual(result, expected)
def test_monthend_feb_leap_year_a(self): """ 33 """ dday = date(2040, 2, 29) expected = 'a_feb' tsto = Grandad(dday, server_name='a') result = tsto.label() self.assertEqual(result, expected)
def test_monthend_feb_a(self): """ 34 """ dday = date(2040, 2, 28) expected = 'a_tue' tsto = Grandad(dday, server_name='a') result = tsto.label() self.assertEqual(result, expected)
def test_new_year_day_a(self): """ 35 """ dday = date(2040, 1, 1) expected = 'a_sun' tsto = Grandad(dday, server_name='a') result = tsto.label() self.assertEqual(result, expected)
def test_force_no_weekly_day_mon(self): """ 21 """ dday = date(2040, 3, 5) expected = 'mon' tsto = Grandad(dday, weekly_day=7) result = tsto.label() self.assertEqual(result, expected)
def test_new_year_day(self): """ 11 """ dday = date(2040, 1, 1) expected = 'sun' tsto = Grandad(dday) result = tsto.label() self.assertEqual(result, expected)
def test_force_no_weekly_day_sat(self): """ 19 """ dday = date(2040, 3, 3) expected = 'sat' tsto = Grandad(dday, weekly_day=7) result = tsto.label() self.assertEqual(result, expected)
def test_monthend_feb_leap_year(self): """ 9 """ dday = date(2040, 2, 29) expected = 'feb' tsto = Grandad(dday) result = tsto.label() self.assertEqual(result, expected)
def test_force_no_weekly_day_fri(self): """ 18 """ dday = date(2040, 3, 2) expected = 'fri' tsto = Grandad(dday, weekly_day=7) result = tsto.label() self.assertEqual(result, expected)
def test_forced_eoy(self): """ 7 """ dday = date(2040, 12, 31) expected = 'eoy_2040' tsto = Grandad(dday, eoy_label='eoy') result = tsto.label() self.assertEqual(result, expected)
def test_force_no_weekly_day_thu(self): """ 17 """ dday = date(2040, 3, 1) expected = 'thu' tsto = Grandad(dday, weekly_day=7) result = tsto.label() self.assertEqual(result, expected)
def test_1st_friday(self): """ 5 """ dday = date(2040, 3, 2) expected = 'fri_1' tsto = Grandad(dday) result = tsto.label() self.assertEqual(result, expected)
def test_force_sun_weekly_day(self): """ 15 """ dday = date(2040, 3, 11) expected = 'sun_2' tsto = Grandad(dday, weekly_day=6) result = tsto.label() self.assertEqual(result, expected)
def test_3rd_friday(self): """ 3 """ dday = date(2010, 3, 19) expected = 'fri_3' tsto = Grandad(dday) result = tsto.label() self.assertEqual(result, expected)
def test_force_thu_weekly_day(self): """ 12 """ dday = date(2010, 3, 18) expected = 'thu_3' tsto = Grandad(dday, weekly_day=3) result = tsto.label() self.assertEqual(result, expected)
def test_monthend_mar_year(self): """ 55 """ dday = date(2040, 3, 31) expected = 'mar_2040' tsto = Grandad(dday, append_eom_year=True) result = tsto.label() self.assertEqual(result, expected)
def test_monthend_feb_eom_year(self): """ 61 """ dday = date(2040, 2, 28) expected = 'tue' tsto = Grandad(dday, append_eom_year=True) result = tsto.label() self.assertEqual(result, expected)
def test_forced_eoy_eom_false_str(self): """ 63 """ dday = '2040/12/31' expected = 'eoy_2040' tsto = Grandad(dday, eoy_label='eoy', append_eom_year=False) result = tsto.label() self.assertEqual(result, expected)
def test_new_year_day_eom_year(self): """ 62 """ dday = date(2040, 1, 1) expected = 'sun' tsto = Grandad(dday, append_eom_year=True) result = tsto.label() self.assertEqual(result, expected)
def test_default_eoy_eom_false_str(self): """ 64 """ dday = '2040/12/31' expected = 'dec_2040' tsto = Grandad(dday, append_eom_year=False) result = tsto.label() self.assertEqual(result, expected)