Exemplo n.º 1
0
def test_get_all_matching_models_different_grep():
    expected = ['Accord', 'Commodore', 'Falcon']
    assert get_all_matching_models(grep='CO') == expected
Exemplo n.º 2
0
def test_get_all_matching_models_default_grep():
    expected = ['Trailblazer', 'Trailhawk']
    assert get_all_matching_models() == expected
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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