def METHOD_NAME(self, tmp_work_path, contents, expected_order):
    """Test that parts are always processed in the same order."""
    project_config = get_project_config(contents)
    assert len(project_config.all_parts) == len(expected_order)
    for part, expected_name in zip(project_config.all_parts, expected_order):
        assert part.name == expected_name