Пример #1
0
def test_xmas_2016():
    holidays = isholiday.getholidays(2016)
    assert (24, 12) in holidays
Пример #2
0
def test_some_holidays(year, month, day):
    holidays = isholiday.getholidays(year)
    assert (day, month) in holidays
Пример #3
0
def test_xmas(year):
    holidays = isholiday.getholidays(year)
    print('Rok je', year)
    assert (24, 12) in holidays
Пример #4
0
def test_no_holiday():
    holidays = isholiday.getholidays(2016)
    assert (3, 9) not in holidays
Пример #5
0
def test_xmas(year):
    """Test whether there is Christmas"""
    holidays = isholiday.getholidays(year)
    assert (24, 12) in holidays
Пример #6
0
def test_xmas_2016(year):
    holidays = isholiday.getholidays(year)
    assert (28, 10) in holidays