Merge "python3: sort dict for post_volumes_1234_action test"
This commit is contained in:
commit
7fa5bc3005
@ -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':
|
||||
|
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user