diff options
author | Clint Byrum <clint@fewbar.com> | 2015-05-27 17:01:48 -0700 |
---|---|---|
committer | Clint Byrum <clint@fewbar.com> | 2015-05-28 09:50:58 -0700 |
commit | 56ec94e35335efd970809d3d6b937f4e48720dd5 (patch) | |
tree | 5670562de53a9b909c981b8b49c9dd9775d3088c /tests/test_51_client.py | |
parent | d4d3a82514076621936bae127f2b6d917927bb99 (diff) | |
download | pysaml2-56ec94e35335efd970809d3d6b937f4e48720dd5.tar.gz |
Fix more moved urlencode sites
Diffstat (limited to 'tests/test_51_client.py')
-rw-r--r-- | tests/test_51_client.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/test_51_client.py b/tests/test_51_client.py index a871d11c..b93f0efe 100644 --- a/tests/test_51_client.py +++ b/tests/test_51_client.py @@ -4,9 +4,7 @@ import base64 import uuid import six -import urllib -from six.moves.urllib.parse import parse_qs -from six.moves.urllib.parse import urlparse +from six.moves.urllib.parse import parse_qs, urlencode, urlparse from saml2.cert import OpenSSLWrapper from saml2.xmldsig import SIG_RSA_SHA256 from saml2 import BINDING_HTTP_POST @@ -1277,7 +1275,7 @@ class TestClientWithDummy(): # Here I fake what the client will do # create the form post - http_args["data"] = urllib.urlencode(_dic) + http_args["data"] = urlencode(_dic) http_args["method"] = "POST" http_args["dummy"] = _dic["SAMLRequest"] http_args["headers"] = [('Content-type', @@ -1312,7 +1310,7 @@ class TestClientWithDummy(): # Here I fake what the client will do # create the form post - http_args["data"] = urllib.urlencode(_dic) + http_args["data"] = urlencode(_dic) http_args["method"] = "POST" http_args["dummy"] = _dic["SAMLRequest"] http_args["headers"] = [('Content-type', |