1
0
Fork 0
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:
kakwa 2019-02-09 16:22:42 +01:00
parent 10747cff93
commit 79983c078f
2 changed files with 4 additions and 1 deletions

View file

@ -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):