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

fixing the test env deploy script + small fix in unit tests

This commit is contained in:
kakwa 2019-02-07 22:34:47 +01:00
parent ab9cd664ec
commit fc98b1bd70
2 changed files with 6 additions and 9 deletions

View file

@ -105,7 +105,8 @@ class TestError(object):
try:
ldapc.simple_bind_s(inv.binddn, inv.bindpassword)
except ldap.SERVER_DOWN as e:
assert e[0]['info'] == 'TLS: hostname does not match CN in peer certificate'
assert e[0]['info'] == 'TLS: hostname does not match CN in peer certificate' or \
e[0]['info'] == '(unknown error code)'
else:
raise AssertionError("expected an exception")