Better variable name assuming there will be more categories in the future.
This commit is contained in:
@@ -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",
|
||||
RESEARCH_AND_SCHOLARSHIP: ["eduPersonPrincipalName",
|
||||
"eduPersonScopedAffiliation", "mail",
|
||||
"givenName", "sn", "displayName"]
|
||||
}
|
||||
|
||||
|
@@ -216,6 +216,7 @@ def test_schac():
|
||||
for ac in acs:
|
||||
try:
|
||||
res = ac.ava_from(attr)
|
||||
assert res[0] == "schacHomeOrganization"
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user