From 09fd73a76e24761dae8ee82441786281ae80ccfa Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 30 Mar 2016 18:28:31 +0200 Subject: [PATCH 6/6] tests: ignore order of concerned roles in formdata api (#10477) --- tests/test_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_api.py b/tests/test_api.py index bd9abcb..07533ab 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -653,7 +653,8 @@ 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 -- 2.1.4