File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 4
4
import base64
5
5
import uuid
6
6
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
10
8
from saml2 .cert import OpenSSLWrapper
11
9
from saml2 .xmldsig import SIG_RSA_SHA256
12
10
from saml2 import BINDING_HTTP_POST
@@ -1277,7 +1275,7 @@ def test_post_sso(self):
1277
1275
# Here I fake what the client will do
1278
1276
# create the form post
1279
1277
1280
- http_args ["data" ] = urllib . urlencode (_dic )
1278
+ http_args ["data" ] = urlencode (_dic )
1281
1279
http_args ["method" ] = "POST"
1282
1280
http_args ["dummy" ] = _dic ["SAMLRequest" ]
1283
1281
http_args ["headers" ] = [('Content-type' ,
@@ -1312,7 +1310,7 @@ def test_negotiated_post_sso(self):
1312
1310
# Here I fake what the client will do
1313
1311
# create the form post
1314
1312
1315
- http_args ["data" ] = urllib . urlencode (_dic )
1313
+ http_args ["data" ] = urlencode (_dic )
1316
1314
http_args ["method" ] = "POST"
1317
1315
http_args ["dummy" ] = _dic ["SAMLRequest" ]
1318
1316
http_args ["headers" ] = [('Content-type' ,
You can’t perform that action at this time.
0 commit comments