1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-19 18:22:57 +02:00

fix test on ldap backend

This commit is contained in:
kakwa 2015-05-26 22:51:29 +02:00
parent 91bc6bb18e
commit c093905015

View File

@ -118,7 +118,7 @@ class TestError(object):
def testGetUser(self): def testGetUser(self):
inv = Backend(cfg, cherrypy.log, 'ldap', attr) inv = Backend(cfg, cherrypy.log, 'ldap', attr)
ret = inv.get_user('jwatson') ret = inv.get_user('jwatson')
expected = ('cn=John Watson,ou=People,dc=example,dc=org', {'uid': ['jwatson'], 'cn': ['John Watson'], 'sn': ['watson']}) expected = {'uid': 'jwatson', 'cn': 'John Watson', 'sn': 'watson'}
assert ret == expected assert ret == expected
def testSearchUser(self): def testSearchUser(self):