Пример #1
0
    def test_scheduled_has_correct_title(self):
        scheduled = Scheduled("Gabizera", 60, datetime.now())

        assert scheduled.get_title() == "Gabizera"
Пример #2
0
    def test_scheduled_has_correct_formatted_end_hour(self):
        date = datetime(2018, 1, 1, 13)
        scheduled = Scheduled("Miauzin", 60, date)

        assert scheduled.get_formatted_end_hour() == "02:00PM"
Пример #3
0
    def test_scheduled_formatted_output(self):
        date = datetime(2018, 1, 1, 9)

        scheduled = Scheduled("Nina", 60, date)

        assert scheduled.__str__() == '09:00AM Nina 60'
Пример #4
0
    def test_scheduled_has_correct_end_hour(self):
        date = datetime(2018, 1, 1, 13)
        end_date = datetime(2018, 1, 1, 14)
        scheduled = Scheduled("Popinha", 60, date)

        assert scheduled.get_end_hour() == end_date
Пример #5
0
    def test_scheduled_has_correct_formatted_hour_for_afternoon_session(self):
        date = datetime(2018, 1, 1, 13)
        scheduled = Scheduled("Nako", 60, date)

        assert scheduled.get_hour() == '01:00PM'
Пример #6
0
    def test_scheduled_has_correct_formatted_hour_for_morning_session(self):
        date = datetime(2018, 1, 1, 9)
        scheduled = Scheduled("Lulis", 60, date)

        assert scheduled.get_hour() == '09:00AM'
Пример #7
0
    def test_scheduled_has_correct_date(self):
        date = datetime(2018, 1, 1, 9)
        scheduled = Scheduled("Lulinha", 60, date)

        assert scheduled.get_date() == date
Пример #8
0
    def test_scheduled_has_correct_duration(self):
        scheduled = Scheduled("Tutucão safado", 60, datetime.now())

        assert scheduled.duration == 60