def test_get_every_nth_state():
    assert get_every_nth_state() == ["Massachusetts", "Missouri",
                                           "Hawaii", "Vermont", "Delaware"]
    assert get_every_nth_state(n=15) == ["Nebraska", "Hawaii", "South Dakota"]
    assert get_every_nth_state(n=3) == ['North Carolina', 'Mississippi', 'Alabama',
                                        'Connecticut', 'Nebraska', 'Idaho',
                                        'South Carolina', 'New Mexico', 'Tennessee',
                                        'Hawaii', 'Ohio', 'Florida', 'California',
                                        'Wyoming', 'South Dakota', 'Iowa']
Exemple #2
0
def test_get_every_nth_state():
    states = get_every_nth_state()
    assert states == [
        'Massachusetts', 'Missouri', 'Hawaii', 'Vermont', 'Delaware'
    ]
    assert get_every_nth_state(20) == ['Missouri', 'Vermont']
Exemple #3
0
def test_get_every_nth_state():
    expected = ['Massachusetts', 'Missouri', 'Hawaii', 'Vermont', 'Delaware']
    assert list(get_every_nth_state()) == expected
    expected = ['Missouri', 'Vermont']
    assert list(get_every_nth_state(n=20)) == expected
Exemple #4
0
def test_get_every_nth_state():
    expected = ["Massachusetts", "Missouri", "Hawaii", "Vermont", "Delaware"]
    assert list(get_every_nth_state()) == expected
    expected = ["Missouri", "Vermont"]
    assert list(get_every_nth_state(n=20)) == expected