Ejemplo n.º 1
0
def test_get_longest_state():
    # depending the direction of the sort (reversed or not)
    # both North and South Carolina are correct
    correct_answers = ('North Carolina', 'South Carolina')
    assert get_longest_state(us_state_abbrev) in correct_answers
    assert get_longest_state(states) in correct_answers
Ejemplo n.º 2
0
def test_get_longest_state():
    assert get_longest_state(states) == "North Carolina"
    assert get_longest_state(us_state_abbrev) == "North Carolina"
def test_get_longest_state():
    correct_answers = ('North Carolina', 'South Carolina')
    assert get_longest_state(states) in correct_answers
    assert get_longest_state(us_state_abbrev) in correct_answers