0006-tests-ignore-order-of-concerned-roles-in-formdata-ap.patch
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 |
- |