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:
parent
64f34e3466
commit
ecbf112677
2 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue