nanterre: correction au test sur la pagination des doublons (#19592)

This commit is contained in:
Benjamin Dauvergne 2017-10-24 19:23:07 +02:00
parent ba2470e373
commit 06bbd8726f
1 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import urlparse
import copy
from django.core.urlresolvers import reverse
@ -39,7 +40,9 @@ def test_list_doublons(nanterre_classic_family, app):
assert response.json['err'] == 0
assert 'more' in response.json
assert 'cookie' in response.json
assert response.json['cookie'] in response.json['more']
assert response.json['cookie'] == urlparse.parse_qs(
urlparse.urlparse(
response.json['more']).query)['cookie'][0]
assert len(response.json['data']) >= 10
assert response.json['data'][0]['id'] == d.id
assert response.json['data'][0]['individu_1']['id'] == first_id