Ejemplo n.º 1
0
 def test_interval_with_one_ferie(self):
     year = 2009
     first_date = date(day=2, month=7, year=year)
     new_date = date(day=15, month=7, year=year)
     self.assertEqual(12, intervalle(first_date, new_date))
Ejemplo n.º 2
0
 def test_interval_with_one_ferie_over_two_years(self):
     first_date = date(day=31, month=12, year=2008)
     new_date = date(day=3, month=1, year=2009)
     self.assertEqual(2, intervalle(first_date, new_date))
Ejemplo n.º 3
0
 def test_interval_dummy_2_day(self):
     year = 2009
     first_date = date(day=2, month=1, year=year)
     new_date = date(day=4, month=1, year=year)
     self.assertEqual(2, intervalle(first_date, new_date))