python3: explicit list of export keys in role manager testing
This commit is contained in:
parent
cd907ea6e3
commit
37ee79e73a
|
@ -24,7 +24,7 @@ def test_manager_role_export(app, admin, ou1, role_ou1, ou2, role_ou2):
|
|||
export_response = response.click('JSON')
|
||||
export = export_response.json
|
||||
|
||||
assert export.keys() == ['roles']
|
||||
assert list(export.keys()) == ['roles']
|
||||
assert len(export['roles']) == 2
|
||||
assert set([role['slug'] for role in export['roles']]) == set(['role_ou1', 'role_ou2'])
|
||||
|
||||
|
@ -42,7 +42,7 @@ def test_manager_role_export(app, admin, ou1, role_ou1, ou2, role_ou2):
|
|||
export_response = search_response.click('JSON')
|
||||
export = export_response.json
|
||||
|
||||
assert export.keys() == ['roles']
|
||||
assert list(export.keys()) == ['roles']
|
||||
assert len(export['roles']) == 1
|
||||
assert export['roles'][0]['slug'] == 'role_ou1'
|
||||
|
||||
|
|
Loading…
Reference in New Issue