summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/test_LDAPMemberDataTool.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_LDAPMemberDataTool.py b/tests/test_LDAPMemberDataTool.py
index f769dfc..af7eaa9 100644
--- a/tests/test_LDAPMemberDataTool.py
+++ b/tests/test_LDAPMemberDataTool.py
@@ -85,7 +85,7 @@ class LDAPMemberDataToolTests(TestCase):
# disregarded.
tool.addMemberProperty('sn')
tool.addMemberProperty('givenName')
- tool.addMemberProperty('mail')
+ tool.addMemberProperty('telephoneNumber')
tool.addMemberProperty('FOO')
tool.addMemberProperty('givenName')
available = tool.getAvailableMemberProperties()
@@ -104,53 +104,53 @@ class LDAPMemberDataToolTests(TestCase):
# the order.
assigned = tool.getSortedMemberProperties()
self.assertEquals( [x['ldap_name'] for x in assigned]
- , ['sn', 'givenName', 'mail']
+ , ['sn', 'givenName', 'telephoneNumber']
)
# Now we start sorting them a bit
tool.moveMemberPropertyUp('givenName')
assigned = tool.getSortedMemberProperties()
self.assertEquals( [x['ldap_name'] for x in assigned]
- , ['givenName', 'sn', 'mail']
+ , ['givenName', 'sn', 'telephoneNumber']
)
# Moving the top element up does nothing.
tool.moveMemberPropertyUp('givenName')
assigned = tool.getSortedMemberProperties()
self.assertEquals( [x['ldap_name'] for x in assigned]
- , ['givenName', 'sn', 'mail']
+ , ['givenName', 'sn', 'telephoneNumber']
)
# Moving an unknown element up does nothing.
tool.moveMemberPropertyUp('FOO')
assigned = tool.getSortedMemberProperties()
self.assertEquals( [x['ldap_name'] for x in assigned]
- , ['givenName', 'sn', 'mail']
+ , ['givenName', 'sn', 'telephoneNumber']
)
# Moving one down
tool.moveMemberPropertyDown('sn')
assigned = tool.getSortedMemberProperties()
self.assertEquals( [x['ldap_name'] for x in assigned]
- , ['givenName', 'mail', 'sn']
+ , ['givenName', 'telephoneNumber', 'sn']
)
# Moving the bottom element down does nothing
tool.moveMemberPropertyDown('sn')
assigned = tool.getSortedMemberProperties()
self.assertEquals( [x['ldap_name'] for x in assigned]
- , ['givenName', 'mail', 'sn']
+ , ['givenName', 'telephoneNumber', 'sn']
)
# Moving an unknown element down does nothing
tool.moveMemberPropertyDown('FOO')
assigned = tool.getSortedMemberProperties()
self.assertEquals( [x['ldap_name'] for x in assigned]
- , ['givenName', 'mail', 'sn']
+ , ['givenName', 'telephoneNumber', 'sn']
)
# Now we are deleting one of the elements.
- tool.removeMemberProperty('mail')
+ tool.removeMemberProperty('telephoneNumber')
assigned = tool.getSortedMemberProperties()
available = tool.getAvailableMemberProperties()
available_keys = [x['ldap_name'] for x in available]