diff --git a/src/saml2/entity_category/incommon.py b/src/saml2/entity_category/incommon.py index 2956ff2..e1c1462 100644 --- a/src/saml2/entity_category/incommon.py +++ b/src/saml2/entity_category/incommon.py @@ -1,10 +1,11 @@ __author__ = 'rolandh' -INC = "http://id.incommon.org/category/research-and-scholarship" +RESEARCH_AND_SCHOLARSHIP = "http://id.incommon.org/category/research-and-scholarship" RELEASE = { "": ["eduPersonTargetedID"], - INC: ["eduPersonPrincipalName", "eduPersonScopedAffiliation", "mail", - "givenName", "sn", "displayName"] + RESEARCH_AND_SCHOLARSHIP: ["eduPersonPrincipalName", + "eduPersonScopedAffiliation", "mail", + "givenName", "sn", "displayName"] } diff --git a/tests/test_19_attribute_converter.py b/tests/test_19_attribute_converter.py index 479f2f8..177d509 100644 --- a/tests/test_19_attribute_converter.py +++ b/tests/test_19_attribute_converter.py @@ -216,6 +216,7 @@ def test_schac(): for ac in acs: try: res = ac.ava_from(attr) + assert res[0] == "schacHomeOrganization" except KeyError: pass