Fixed errors in tests

This commit is contained in:
Roland Hedberg
2015-09-07 09:33:08 +02:00
parent 177892dab5
commit ff2bf505d8
2 changed files with 3 additions and 3 deletions

View File

@@ -360,7 +360,7 @@ def test_load_local():
saml_config = Config() saml_config = Config()
config_dict = { config_dict = {
"metadata": {"inline": idp_metadata} "metadata": {"inline": [idp_metadata]}
} }
cfg = saml_config.load(config_dict) cfg = saml_config.load(config_dict)
assert cfg assert cfg
@@ -385,4 +385,4 @@ def test_load_string():
if __name__ == "__main__": if __name__ == "__main__":
test_load_string() test_load_local()

View File

@@ -346,7 +346,7 @@ def test_load_string():
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',