Fix minor python3 failures in mdstore tests
Views need to be cast to list.
This commit is contained in:
@@ -190,7 +190,7 @@ def test_ext_2():
|
|||||||
ents = mds.with_descriptor("spsso")
|
ents = mds.with_descriptor("spsso")
|
||||||
for binding in [BINDING_SOAP, BINDING_HTTP_POST, BINDING_HTTP_ARTIFACT,
|
for binding in [BINDING_SOAP, BINDING_HTTP_POST, BINDING_HTTP_ARTIFACT,
|
||||||
BINDING_HTTP_REDIRECT]:
|
BINDING_HTTP_REDIRECT]:
|
||||||
assert mds.single_logout_service(ents.keys()[0], binding, "spsso")
|
assert mds.single_logout_service(list(ents.keys())[0], binding, "spsso")
|
||||||
|
|
||||||
|
|
||||||
def test_example():
|
def test_example():
|
||||||
@@ -201,7 +201,7 @@ def test_example():
|
|||||||
assert len(mds.keys()) == 1
|
assert len(mds.keys()) == 1
|
||||||
idps = mds.with_descriptor("idpsso")
|
idps = mds.with_descriptor("idpsso")
|
||||||
|
|
||||||
assert idps.keys() == [
|
assert list(idps.keys()) == [
|
||||||
'http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php']
|
'http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php']
|
||||||
certs = mds.certs(
|
certs = mds.certs(
|
||||||
'http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php',
|
'http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php',
|
||||||
|
@@ -176,7 +176,7 @@ def test_ext_2():
|
|||||||
ents = mds.with_descriptor("spsso")
|
ents = mds.with_descriptor("spsso")
|
||||||
for binding in [BINDING_SOAP, BINDING_HTTP_POST, BINDING_HTTP_ARTIFACT,
|
for binding in [BINDING_SOAP, BINDING_HTTP_POST, BINDING_HTTP_ARTIFACT,
|
||||||
BINDING_HTTP_REDIRECT]:
|
BINDING_HTTP_REDIRECT]:
|
||||||
assert mds.single_logout_service(ents.keys()[0], binding, "spsso")
|
assert mds.single_logout_service(list(ents.keys())[0], binding, "spsso")
|
||||||
|
|
||||||
|
|
||||||
def test_example():
|
def test_example():
|
||||||
@@ -187,7 +187,7 @@ def test_example():
|
|||||||
assert len(mds.keys()) == 1
|
assert len(mds.keys()) == 1
|
||||||
idps = mds.with_descriptor("idpsso")
|
idps = mds.with_descriptor("idpsso")
|
||||||
|
|
||||||
assert idps.keys() == [
|
assert list(idps.keys()) == [
|
||||||
'http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php']
|
'http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php']
|
||||||
certs = mds.certs(
|
certs = mds.certs(
|
||||||
'http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php',
|
'http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php',
|
||||||
|
Reference in New Issue
Block a user