Merge "python3: sort dict for post_volumes_1234_action test"

This commit is contained in:
Jenkins 2013-10-23 22:26:28 +00:00 committed by Gerrit Code Review
commit 7fa5bc3005
2 changed files with 4 additions and 2 deletions

View File

@ -316,7 +316,8 @@ class FakeHTTPClient(base_client.HTTPClient):
assert len(list(body)) == 1
action = list(body)[0]
if action == 'os-attach':
assert list(body[action]) == ['instance_uuid', 'mountpoint']
assert sorted(list(body[action])) == ['instance_uuid',
'mountpoint']
elif action == 'os-detach':
assert body[action] is None
elif action == 'os-reserve':

View File

@ -323,7 +323,8 @@ class FakeHTTPClient(base_client.HTTPClient):
assert len(list(body)) == 1
action = list(body)[0]
if action == 'os-attach':
assert list(body[action]) == ['instance_uuid', 'mountpoint']
assert sorted(list(body[action])) == ['instance_uuid',
'mountpoint']
elif action == 'os-detach':
assert body[action] is None
elif action == 'os-reserve':