diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-01-31 12:16:25 +0100 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-01-31 12:16:25 +0100 |
commit | 0ba327d6eb28dc1a13326da194df56f1af543253 (patch) | |
tree | 3a8b58fbe61fe9b3eb52d49112808249526c91c6 /tests/test_30_mdstore.py | |
parent | 8057954688fe02aae0240cefb953883769a2b65f (diff) | |
download | pysaml2-0ba327d6eb28dc1a13326da194df56f1af543253.tar.gz |
Fixed some tests.
Diffstat (limited to 'tests/test_30_mdstore.py')
-rw-r--r-- | tests/test_30_mdstore.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_30_mdstore.py b/tests/test_30_mdstore.py index 0f3befef..7400fe87 100644 --- a/tests/test_30_mdstore.py +++ b/tests/test_30_mdstore.py @@ -20,6 +20,7 @@ from saml2.extension import idpdisc from saml2.extension import dri from saml2.extension import mdattr from saml2.extension import ui +from saml2.s_utils import UnknownPrincipal import xmldsig import xmlenc @@ -123,7 +124,11 @@ def test_incommon_1(): idps = mds.with_descriptor("idpsso") print idps.keys() assert len(idps) == 53 # !!!!???? < 10% - assert mds.single_sign_on_service('urn:mace:incommon:uiuc.edu') == [] + try: + _ = mds.single_sign_on_service('urn:mace:incommon:uiuc.edu') + except UnknownPrincipal: + pass + idpsso = mds.single_sign_on_service('urn:mace:incommon:alaska.edu') assert len(idpsso) == 1 print idpsso |