summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Vagelpohl <jens@netz.ooo>2005-09-20 16:09:26 +0000
committerJens Vagelpohl <jens@netz.ooo>2005-09-20 16:09:26 +0000
commit686160c58d129a42c5298f805ecc6c817d361fea (patch)
tree29e43c99be0048ac39a722eb24c0f7a6d62a4616
parent99a844ea0efe20f1d06c025b5f0b2274dd530422 (diff)
downloadCMFLDAP-686160c58d129a42c5298f805ecc6c817d361fea.zip
CMFLDAP-686160c58d129a42c5298f805ecc6c817d361fea.tar.gz
- adjust testsHEADmaster
-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]