Projet

Général

Profil

0006-tests-ignore-order-of-concerned-roles-in-formdata-ap.patch

Benjamin Dauvergne, 30 mars 2016 18:50

Télécharger (1,05 ko)

Voir les différences:

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(-)
tests/test_api.py
653 653

  
654 654
    assert [x.get('id') for x in resp.json['roles']['_receiver']] == [str(role.id)]
655 655
    assert [x.get('id') for x in resp.json['roles']['_foobar']] == [str(another_role.id)]
656
    assert [x.get('id') for x in resp.json['roles']['concerned']] == [str(role.id), str(another_role.id)]
656
    assert (set([x.get('id') for x in resp.json['roles']['concerned']])
657
            == set([str(role.id), str(another_role.id)]))
657 658
    assert [x.get('id') for x in resp.json['roles']['actions']] == [str(role.id)]
658 659

  
659 660
    # check the ?format=json endpoint returns 403
660
-