def test_filter_country_locations__filters_not_countries(response_api_locations): assert len(filter_country_locations(response_api_locations, is_country=False)) == 2
def test_filter_country_locations__filters_countries(response_api_locations): assert len(filter_country_locations(response_api_locations)) == 3 assert len(filter_country_locations(response_api_locations, is_country=True)) == 3