tests: ignore order of roles in test_formdata

This commit is contained in:
Frédéric Péters 2018-10-14 11:33:22 +02:00
parent 3bdf1b931c
commit 3cfce2111f
1 changed files with 1 additions and 1 deletions

View File

@ -1096,7 +1096,7 @@ def test_formdata(pub, local_user):
assert [x.get('id') for x in resp.json['roles']['_receiver']] == [str(role.id)]
assert [x.get('id') for x in resp.json['roles']['_foobar']] == [str(another_role.id)]
assert [x.get('id') for x in resp.json['roles']['concerned']] == [str(role.id), str(another_role.id)]
assert set([x.get('id') for x in resp.json['roles']['concerned']]) == set([str(role.id), str(another_role.id)])
assert [x.get('id') for x in resp.json['roles']['actions']] == [str(role.id)]
# check the ?format=json endpoint returns 403