summaryrefslogtreecommitdiff
path: root/tests/test_30_mdstore.py
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2018-12-06 10:12:47 +0100
committerIvan Kanakarakis <ivan.kanak@gmail.com>2018-12-06 10:12:47 +0100
commit05195ff4764de9e8318a678129fc31c8fba0b96d (patch)
tree55950fcaf569cbadebcb0490fd9e69a32e058506 /tests/test_30_mdstore.py
parenta73239c853ddbcc210044381e5ebbc5e7a814fb6 (diff)
downloadpysaml2-05195ff4764de9e8318a678129fc31c8fba0b96d.tar.gz
Remove the python-future module and use six
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'tests/test_30_mdstore.py')
-rw-r--r--tests/test_30_mdstore.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_30_mdstore.py b/tests/test_30_mdstore.py
index 9f56bf94..46a38aea 100644
--- a/tests/test_30_mdstore.py
+++ b/tests/test_30_mdstore.py
@@ -4,7 +4,7 @@ import datetime
import re
from collections import OrderedDict
-from future.backports.urllib.parse import quote_plus
+from six.moves.urllib import parse
from saml2.config import Config
from saml2.mdstore import MetadataStore, MetaDataExtern
@@ -299,7 +299,7 @@ def test_mdx_service():
entity_id = "http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php"
url = "http://mdx.example.com/entities/{}".format(
- quote_plus(MetaDataMDX.sha1_entity_transform(entity_id)))
+ parse.quote_plus(MetaDataMDX.sha1_entity_transform(entity_id)))
responses.add(responses.GET, url, body=TEST_METADATA_STRING, status=200,
content_type=SAML_METADATA_CONTENT_TYPE)
@@ -315,7 +315,7 @@ def test_mdx_single_sign_on_service():
entity_id = "http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php"
url = "http://mdx.example.com/entities/{}".format(
- quote_plus(MetaDataMDX.sha1_entity_transform(entity_id)))
+ parse.quote_plus(MetaDataMDX.sha1_entity_transform(entity_id)))
responses.add(responses.GET, url, body=TEST_METADATA_STRING, status=200,
content_type=SAML_METADATA_CONTENT_TYPE)