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