Projet

Général

Profil

0001-tests-add-data-to-test-handling-of-UTF-8-in-lasso-du.patch

Benjamin Dauvergne, 26 avril 2020 22:05

Télécharger (1,27 ko)

Voir les différences:

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(-)
tests/test_idp_saml2.py
273 273
            login.msgRelayState = force_str(relay_state)
274 274
        if not name_id_policy:
275 275
            request.nameIdPolicy = None
276
        request.extensions = lasso.Samlp2Extensions()
277
        # extension with unicode characters !! test dumping in saml2_endpoints and continue_sso
278
        request.extensions.any = (
279
            force_str('<extension xmlns="http://example.com/">éé</extension>'),
280
        )
281

  
276 282
        if login_hints:
277
            request.extensions = lasso.Samlp2Extensions()
278
            request.extensions.any = (
283
            request.extensions.any += (
279 284
                force_str('<login-hint xmlns="https://www.entrouvert.com/">%s</login-hint>' % ' '.join(login_hints)),
280 285
            )
281 286
        login.buildAuthnRequestMsg()
282
-