From ff2bf505d842da542cc7db78001089f8cc3ed9ef Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Mon, 7 Sep 2015 09:33:08 +0200 Subject: [PATCH] Fixed errors in tests --- tests/test_30_mdstore.py | 4 ++-- tests/test_30_mdstore_old.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_30_mdstore.py b/tests/test_30_mdstore.py index ecb1fee..d531d8f 100644 --- a/tests/test_30_mdstore.py +++ b/tests/test_30_mdstore.py @@ -360,7 +360,7 @@ def test_load_local(): saml_config = Config() config_dict = { - "metadata": {"inline": idp_metadata} + "metadata": {"inline": [idp_metadata]} } cfg = saml_config.load(config_dict) assert cfg @@ -385,4 +385,4 @@ def test_load_string(): if __name__ == "__main__": - test_load_string() + test_load_local() diff --git a/tests/test_30_mdstore_old.py b/tests/test_30_mdstore_old.py index a90a470..941fa36 100644 --- a/tests/test_30_mdstore_old.py +++ b/tests/test_30_mdstore_old.py @@ -346,7 +346,7 @@ def test_load_string(): assert len(mds.keys()) == 1 idps = mds.with_descriptor("idpsso") - assert idps.keys() == [ + assert list(idps.keys()) == [ 'http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php'] certs = mds.certs( 'http://xenosmilus.umdc.umu.se/simplesaml/saml2/idp/metadata.php',