Beispiel #1
0
 def test_overtime_period_if_first_day_is_sunday(self):
     self.assertEqual(overtime_period(date(2008, 6, 14)),
                      (date(2008, 5, 18), date(2008, 6, 14)))
     self.assertEqual(overtime_period(date(2008, 6, 15)),
                      (date(2008, 6, 15), date(2008, 7, 19)))
     self.assertEqual(overtime_period(date(2008, 6, 22)),
                      (date(2008, 6, 15), date(2008, 7, 19)))
     self.assertEqual(overtime_period(date(2008, 7, 19)),
                      (date(2008, 6, 15), date(2008, 7, 19)))
     self.assertEqual(overtime_period(date(2008, 7, 20)),
                      (date(2008, 7, 20), date(2008, 8, 16)))
Beispiel #2
0
 def test_overtime_period_if_first_day_is_sunday(self):
     self.assertEqual(overtime_period(date(2008, 6, 14)), (date(2008, 5, 18),
         date(2008, 6, 14)))
     self.assertEqual(overtime_period(date(2008, 6, 15)), (date(2008, 6, 15),
         date(2008, 7, 19)))
     self.assertEqual(overtime_period(date(2008, 6, 22)), (date(2008, 6, 15),
         date(2008, 7, 19)))
     self.assertEqual(overtime_period(date(2008, 7, 19)), (date(2008, 6, 15),
         date(2008, 7, 19)))
     self.assertEqual(overtime_period(date(2008, 7, 20)), (date(2008, 7, 20),
         date(2008, 8, 16)))
Beispiel #3
0
 def test_overtime_period_after_end(self):
     a_date = date(2008, 8, 17)
     self.assertEqual(overtime_period(a_date),
                      (date(2008, 8, 17), date(2008, 9, 20)))
Beispiel #4
0
 def test_overtime_period_while_ending(self):
     a_date = date(2008, 8, 16)
     self.assertEqual(overtime_period(a_date),
                      (date(2008, 7, 20), date(2008, 8, 16)))
Beispiel #5
0
 def test_overtime_period_before_end(self):
     a_date = date(2008, 8, 15)
     self.assertEqual(overtime_period(a_date),
                      (date(2008, 7, 20), date(2008, 8, 16)))
Beispiel #6
0
 def test_overtime_period_after_end(self):
     a_date = date(2008,8,17)
     self.assertEqual(overtime_period(a_date), (date(2008,8,17), date(2008,9,20)))
Beispiel #7
0
 def test_overtime_period_while_ending(self):
     a_date = date(2008,8,16)
     self.assertEqual(overtime_period(a_date), (date(2008,7,20), date(2008,8,16)))
Beispiel #8
0
 def test_overtime_period_before_end(self):
     a_date = date(2008,8,15)
     self.assertEqual(overtime_period(a_date), (date(2008,7,20), date(2008,8,16)))