diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-12-10 20:01:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 20:01:40 +0200 |
commit | 6ef6a25289b810e16b059a05ce4f2a31276f4bc3 (patch) | |
tree | 9da7e5264e624fcec1b9c9dff82f5791c3fa8d1c /tests/test_37_entity_categories.py | |
parent | ddc2b5253b60a0e665aaac65f2772a4481a7f1b1 (diff) | |
parent | 7aec47383e7eeb12912bacc99c3d1017bd2ee15e (diff) | |
download | pysaml2-6ef6a25289b810e16b059a05ce4f2a31276f4bc3.tar.gz |
Merge pull request #751 from johanlundberg/swamid_policy_update_eduperson_targeted_id
Update of SWAMID policy regarding eduPersonTargetedID when no entity category is used
Diffstat (limited to 'tests/test_37_entity_categories.py')
-rw-r--r-- | tests/test_37_entity_categories.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_37_entity_categories.py b/tests/test_37_entity_categories.py index a24a4feb..4ede68d6 100644 --- a/tests/test_37_entity_categories.py +++ b/tests/test_37_entity_categories.py @@ -102,7 +102,7 @@ def test_filter_ava3(): } ava = policy.filter(ava, "urn:mace:example.com:saml:roland:sp") - assert _eq(list(ava.keys()), ['eduPersonTargetedID', "norEduPersonNIN"]) + assert _eq(list(ava.keys()), ["norEduPersonNIN"]) def test_filter_ava4(): @@ -131,7 +131,7 @@ def test_filter_ava4(): ava = policy.filter(ava, "urn:mace:example.com:saml:roland:sp") assert _eq( - list(ava.keys()), ['eduPersonTargetedID', "givenName", "c", "mail", "sn"] + list(ava.keys()), ["givenName", "c", "mail", "sn"] ) @@ -160,7 +160,7 @@ def test_filter_ava5(): ava = policy.filter(ava, "urn:mace:example.com:saml:roland:sp") - assert _eq(list(ava.keys()), ['eduPersonTargetedID']) + assert _eq(list(ava.keys()), []) def test_idp_policy_filter(): |