コード例 #1
0
def test_jan_1956():
    weekdays = get_weekdays(jan_1956)
    assert len(weekdays) == 31
    assert weekdays[13] == 'Fr'
    assert weekdays[31] == 'Tu'
コード例 #2
0
def test_jan_1986():
    weekdays = get_weekdays(jan_1986)
    assert len(weekdays) == 31
    assert weekdays[20] == 'Mo'
    assert weekdays[16] == 'Th'
    assert weekdays[2] == 'Th'
コード例 #3
0
def test_april_1981():
    weekdays = get_weekdays(april_1981)
    assert len(weekdays) == 30
    assert weekdays[25] == 'Sa'
    assert weekdays[22] == 'We'
    assert weekdays[1] == 'We'
コード例 #4
0
ファイル: test_cal.py プロジェクト: pogross/bitesofpy
def test_jan_1956():
    weekdays = get_weekdays(jan_1956)
    assert len(weekdays) == 31
    assert weekdays[13] == "Fr"
    assert weekdays[31] == "Tu"
コード例 #5
0
ファイル: test_cal.py プロジェクト: pogross/bitesofpy
def test_jan_1986():
    weekdays = get_weekdays(jan_1986)
    assert len(weekdays) == 31
    assert weekdays[20] == "Mo"
    assert weekdays[16] == "Th"
コード例 #6
0
ファイル: test_cal.py プロジェクト: pogross/bitesofpy
def test_april_1981():
    weekdays = get_weekdays(april_1981)
    assert len(weekdays) == 30
    assert weekdays[25] == "Sa"
    assert weekdays[22] == "We"