def test_create_schedules_from_txt_3(self):
        """Teste la création de périodes via un txt: '08:00-12:00', 'Mon', teste l'heure de fin."""

        schedules = Schedule.create_schedules_from_txt('08:00-12:00', 'Mon',
                                                       'test')
        self.assertEqual(schedules[0].hour_end.hour, 12)
    def test_create_schedules_from_txt_1(self):
        """Teste la création de périodes via un txt: nb"""

        schedules = Schedule.create_schedules_from_txt(
            '08:00-12:00/14:00-17:00', 'Mon', 'test')
        self.assertEqual(len(schedules), 2)
    def test_create_schedules_from_txt_2(self):
        """Teste la création de périodes via un txt: '08:00-12:00', 'Mon', teste le jour."""

        schedules = Schedule.create_schedules_from_txt('08:00-12:00', 'Mon',
                                                       'test')
        self.assertEqual(schedules[0].day, 'Mon')