tests: remove warning on Element.getchildren() (#41302)

This commit is contained in:
Benjamin Dauvergne 2020-04-06 11:41:14 +02:00 committed by Nicolas ROCHE
parent 80bdcd9c09
commit 51585f6290
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ def test_binary_data(app, partner_southpark, cut_kevin_uuid, acl):
assert resp.headers.get('Content-Type') == content_type
xml_data = etree.fromstring(resp.content)
assert xml_data.tag == 'friends'
assert len(xml_data.getchildren()) == 4
assert len(list(xml_data)) == 4
# test update by changing format
payload = {"friends": [{"name": "Token", "age": 10}, {"name": "Kenny", "age": 10}]}