We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3bf6199 + 2483c59 commit f7ed6c2Copy full SHA for f7ed6c2
1 file changed
tests/test_60_sp.py
@@ -1,7 +1,8 @@
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
4
-import base64
+from base64 import encodebytes as b64encode
5
+
6
import pytest
7
from saml2.authn_context import INTERNETPROTOCOLPASSWORD
8
from saml2.saml import NAMEID_FORMAT_TRANSIENT
@@ -73,7 +74,7 @@ def test_identify(self):
73
74
"urn:mace:example.com:saml:roland:sp", trans_name_policy,
75
"foba0001@example.com", authn=AUTHN)
76
- resp_str = base64.encodestring(resp_str.encode('utf-8'))
77
+ resp_str = b64encode(resp_str.encode('utf-8'))
78
self.sp.outstanding_queries = {"id1": "http://www.example.com/service"}
79
session_info = self.sp._eval_authn_response(
80
{}, {"SAMLResponse": [resp_str]})
0 commit comments