tests: expand iterkeys() in assert (#36515)

This commit is contained in:
Frédéric Péters 2019-11-13 20:14:10 +01:00
parent a97b93d163
commit 23ab03be8a
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ def test_formdef_list(pub):
assert resp1.json['data'][0]['redirection'] == False
assert resp1.json['data'][0]['description'] == 'plop'
assert resp1.json['data'][0]['keywords'] == ['mobile', 'test']
assert resp1.json['data'][0]['functions'].keys() == ['_receiver']
assert list(resp1.json['data'][0]['functions'].keys()) == ['_receiver']
assert resp1.json['data'][0]['functions']['_receiver']['label'] == 'Recipient'
assert resp1.json['data'][0]['functions']['_receiver']['role']['slug'] == role.slug
assert resp1.json['data'][0]['functions']['_receiver']['role']['name'] == role.name