1
0
Fork 0
mirror of https://github.com/kakwa/ldapcherry synced 2025-07-03 11:57:41 +02:00

fix unit test on duplicate user exception

This commit is contained in:
kakwa 2015-07-31 22:54:21 +02:00
parent 64f34e3466
commit ecbf112677
2 changed files with 4 additions and 1 deletions

View file

@ -217,7 +217,7 @@ class TestError(object):
try:
inv.add_user(user)
inv.add_user(user)
except ldap.ALREADY_EXISTS:
except UserAlreadyExists:
inv.del_user('test')
return
else: