Better variable name assuming there will be more categories in the future.

This commit is contained in:
Roland Hedberg
2014-03-16 16:09:55 +01:00
parent e0fb5e3c99
commit 25af8fcdd8
2 changed files with 5 additions and 3 deletions

View File

@@ -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"]
}

View File

@@ -216,6 +216,7 @@ def test_schac():
for ac in acs:
try:
res = ac.ava_from(attr)
assert res[0] == "schacHomeOrganization"
except KeyError:
pass