def test_overlaping_2(self): """Teste le chevauchement de deux périodes: jour différent""" schedule_a = Schedule(datetime.time(10, 0), datetime.time(12, 0), 'Mon', 'test') schedule_b = Schedule(datetime.time(11, 30), datetime.time(12, 30), 'Tue', 'test') self.assertFalse(schedule_a.test_overlaping(schedule_b))
def test_overlaping_3(self): """Teste le chevauchement de deux périodes: périodes successives""" schedule_a = Schedule(datetime.time(10, 0), datetime.time(12, 0), 'Mon', 'test') schedule_b = Schedule(datetime.time(12, 0), datetime.time(13, 0), 'Mon', 'test') self.assertFalse(schedule_a.test_overlaping(schedule_b))
def test_overlaping_1(self): """Teste le chevauchement de deux périodes: chevauchement""" schedule_a = Schedule(datetime.time(10, 0), datetime.time(12, 0), 'Mon', 'test') schedule_b = Schedule(datetime.time(11, 30), datetime.time(12, 30), 'Mon', 'test') self.assertTrue(schedule_a.test_overlaping(schedule_b))