Neutron cannot possibly be passing tests under Python 2.6, as
neutron/tests/unit/test_api_v2.py is referencing
collections.OrderedDict, which does not exist in Python 2.6.
Since there is no reason to use an OrderedDict in this case,
this replaces it with a simple dict.
Change-Id: I1b9886f508c4c8b96cf50c50f157c1960da433fc
Closes-Bug: #
1372571
# License for the specific language governing permissions and limitations
# under the License.
-import collections
import os
import mock
def _get_collection_kwargs(self, skipargs=[], **kwargs):
args_list = ['filters', 'fields', 'sorts', 'limit', 'marker',
'page_reverse']
- args_dict = collections.OrderedDict(
+ args_dict = dict(
(arg, mock.ANY) for arg in set(args_list) - set(skipargs))
args_dict.update(kwargs)
return args_dict