summaryrefslogtreecommitdiff
path: root/tests/myentitycategory.py
diff options
context:
space:
mode:
authorScott Koranda <skoranda@gmail.com>2019-05-07 07:41:08 -0500
committerScott Koranda <skoranda@gmail.com>2019-05-07 07:41:08 -0500
commit15bdc66ac776e04777666fff3d08a38e24f5305a (patch)
tree7cd59e8cbb1c5b8f304e08ee422f0b06733f2d6d /tests/myentitycategory.py
parent3f1ce6bf9605f13a203d9fa52a2b94026adfedf9 (diff)
downloadpysaml2-15bdc66ac776e04777666fff3d08a38e24f5305a.tar.gz
Added tests for new entity category import functionality
Added tests for the new entity category import functionality that searches for entity category modules on the general import path before searching in saml2.entity_category.<module>.
Diffstat (limited to 'tests/myentitycategory.py')
-rw-r--r--tests/myentitycategory.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/myentitycategory.py b/tests/myentitycategory.py
new file mode 100644
index 00000000..9ec55bf9
--- /dev/null
+++ b/tests/myentitycategory.py
@@ -0,0 +1,16 @@
+CUSTOM_R_AND_S = ['eduPersonTargetedID',
+ 'eduPersonPrincipalName',
+ 'mail',
+ 'displayName',
+ 'givenName',
+ 'sn',
+ 'eduPersonScopedAffiliation',
+ 'eduPersonUniqueId'
+ ]
+
+RESEARCH_AND_SCHOLARSHIP = "http://refeds.org/category/research-and-scholarship"
+
+RELEASE = {
+ "": ["eduPersonTargetedID"],
+ RESEARCH_AND_SCHOLARSHIP: CUSTOM_R_AND_S,
+}