Better variable name assuming there will be more categories in the future.
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
__author__ = 'rolandh'
|
__author__ = 'rolandh'
|
||||||
|
|
||||||
INC = "http://id.incommon.org/category/research-and-scholarship"
|
RESEARCH_AND_SCHOLARSHIP = "http://id.incommon.org/category/research-and-scholarship"
|
||||||
|
|
||||||
RELEASE = {
|
RELEASE = {
|
||||||
"": ["eduPersonTargetedID"],
|
"": ["eduPersonTargetedID"],
|
||||||
INC: ["eduPersonPrincipalName", "eduPersonScopedAffiliation", "mail",
|
RESEARCH_AND_SCHOLARSHIP: ["eduPersonPrincipalName",
|
||||||
"givenName", "sn", "displayName"]
|
"eduPersonScopedAffiliation", "mail",
|
||||||
|
"givenName", "sn", "displayName"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -216,6 +216,7 @@ def test_schac():
|
|||||||
for ac in acs:
|
for ac in acs:
|
||||||
try:
|
try:
|
||||||
res = ac.ava_from(attr)
|
res = ac.ava_from(attr)
|
||||||
|
assert res[0] == "schacHomeOrganization"
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user