Пример #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