From 6bd8fa3e5bd219d16c913a8010a9fa5cace7f822 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Sun, 26 Apr 2020 21:25:15 +0200 Subject: [PATCH 1/2] tests: add data to test handling of UTF-8 in lasso dumps (#41235) --- tests/test_idp_saml2.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git tests/test_idp_saml2.py tests/test_idp_saml2.py index 6defb9a9..828f736e 100644 --- tests/test_idp_saml2.py +++ tests/test_idp_saml2.py @@ -273,9 +273,14 @@ class SamlSP(object): login.msgRelayState = force_str(relay_state) if not name_id_policy: request.nameIdPolicy = None + request.extensions = lasso.Samlp2Extensions() + # extension with unicode characters !! test dumping in saml2_endpoints and continue_sso + request.extensions.any = ( + force_str('éé'), + ) + if login_hints: - request.extensions = lasso.Samlp2Extensions() - request.extensions.any = ( + request.extensions.any += ( force_str('%s' % ' '.join(login_hints)), ) login.buildAuthnRequestMsg() -- 2.26.0