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',