示例#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