Skip to content

Commit 25af8fc

Browse files
author
Roland Hedberg
committed
Better variable name assuming there will be more categories in the future.
1 parent e0fb5e3 commit 25af8fc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/saml2/entity_category/incommon.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
__author__ = 'rolandh'
22

3-
INC = "http://id.incommon.org/category/research-and-scholarship"
3+
RESEARCH_AND_SCHOLARSHIP = "http://id.incommon.org/category/research-and-scholarship"
44

55
RELEASE = {
66
"": ["eduPersonTargetedID"],
7-
INC: ["eduPersonPrincipalName", "eduPersonScopedAffiliation", "mail",
8-
"givenName", "sn", "displayName"]
7+
RESEARCH_AND_SCHOLARSHIP: ["eduPersonPrincipalName",
8+
"eduPersonScopedAffiliation", "mail",
9+
"givenName", "sn", "displayName"]
910
}
1011

tests/test_19_attribute_converter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ def test_schac():
216216
for ac in acs:
217217
try:
218218
res = ac.ava_from(attr)
219+
assert res[0] == "schacHomeOrganization"
219220
except KeyError:
220221
pass
221222

0 commit comments

Comments
 (0)