예제 #1
0
def test_get_all_matching_models_different_grep():
    expected = ['Accord', 'Commodore', 'Falcon']
    assert get_all_matching_models(grep='CO') == expected
예제 #2
0
def test_get_all_matching_models_default_grep():
    expected = ['Trailblazer', 'Trailhawk']
    assert get_all_matching_models() == expected
예제 #3
0
def test_get_all_matching_models():
    expected = ['Trailblazer', 'Trailhawk']
    assert get_all_matching_models() == expected
    expected = ['Accord', 'Commodore', 'Falcon']
    assert get_all_matching_models(grep='CO') == expected
예제 #4
0
def test_get_all_matching_models_different_grep():
    expected = ['Accord', 'Commodore', 'Falcon']
    # sorting requirement might be missed and is not essential for this method
    assert sorted(get_all_matching_models(grep='CO')) == expected
예제 #5
0
def test_get_all_matching_models_default_grep():
    expected = ['Trailblazer', 'Trailhawk']
    # sorting requirement might be missed and is not essential for this method
    assert sorted(get_all_matching_models()) == expected
예제 #6
0
def test_get_all_matching_models_different_grep():
    expected = ["Accord", "Commodore", "Falcon"]
    # sorting requirement might be missed and is not essential for this method
    assert sorted(get_all_matching_models(grep="CO")) == expected