Skip to content

Commit 56ec94e

Browse files
committed
Fix more moved urlencode sites
1 parent d4d3a82 commit 56ec94e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_51_client.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
import base64
55
import uuid
66
import six
7-
import urllib
8-
from six.moves.urllib.parse import parse_qs
9-
from six.moves.urllib.parse import urlparse
7+
from six.moves.urllib.parse import parse_qs, urlencode, urlparse
108
from saml2.cert import OpenSSLWrapper
119
from saml2.xmldsig import SIG_RSA_SHA256
1210
from saml2 import BINDING_HTTP_POST
@@ -1277,7 +1275,7 @@ def test_post_sso(self):
12771275
# Here I fake what the client will do
12781276
# create the form post
12791277

1280-
http_args["data"] = urllib.urlencode(_dic)
1278+
http_args["data"] = urlencode(_dic)
12811279
http_args["method"] = "POST"
12821280
http_args["dummy"] = _dic["SAMLRequest"]
12831281
http_args["headers"] = [('Content-type',
@@ -1312,7 +1310,7 @@ def test_negotiated_post_sso(self):
13121310
# Here I fake what the client will do
13131311
# create the form post
13141312

1315-
http_args["data"] = urllib.urlencode(_dic)
1313+
http_args["data"] = urlencode(_dic)
13161314
http_args["method"] = "POST"
13171315
http_args["dummy"] = _dic["SAMLRequest"]
13181316
http_args["headers"] = [('Content-type',

0 commit comments

Comments
 (0)