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']
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']
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
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