mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-03 03:47:35 +02:00
fix behavior of get_attributes()
* make sure it returns an ordered list in both python 2 and python 3
This commit is contained in:
parent
10747cff93
commit
79983c078f
2 changed files with 4 additions and 1 deletions
|
@ -42,6 +42,7 @@ class TestError(object):
|
|||
inv = Attributes('./tests/cfg/attributes.yml')
|
||||
ret = inv.get_backend_attributes('ldap')
|
||||
expected = ['shell', 'cn', 'userPassword', 'uidNumber', 'gidNumber', 'sn', 'home', 'givenName', 'email', 'uid']
|
||||
expected.sort()
|
||||
assert ret == expected
|
||||
|
||||
def testGetKey(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue