Commit db98f5c0 authored by Lorenz Steinert's avatar Lorenz Steinert

fix tests

parent 28581b24
......@@ -31,13 +31,15 @@ class FsrLdapTest(unittest.TestCase):
conn.strategy.add_entry('ou=people,'+self.ldap_server.base, {})
conn.strategy.add_entry('ou=group,'+self.ldap_server.base, {})
conn.strategy.add_entry('cn=intern,ou=group,'+self.ldap_server.base,
{'memberUid': 'test1'})
{'member': 'uid=test1,ou=people,'+self.ldap_server.base})
conn.strategy.add_entry('cn=extern,ou=group,'+self.ldap_server.base,
{'memberUid': 'test2'})
{'member': 'uid=test2,ou=people,'+self.ldap_server.base})
conn.strategy.add_entry('uid=test1,ou=people,'+self.ldap_server.base,
{'displayName': 'test1, testing'})
{'displayName': 'test1, testing',
'objectClass': ['posixAccount']})
conn.strategy.add_entry('uid=test2,ou=people,'+self.ldap_server.base,
{'displayName': 'test2, testing'})
{'displayName': 'test2, testing',
'objectClass': ['posixAccount']})
os.mkdir("/tmp/python3-esme-testing")
with open("/tmp/python3-esme-testing/fsr", 'w') as fobj:
fobj.write("testing test1\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment