Skip to content

Commit

Permalink
another LDAPObject test
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder authored and Petr Viktorin committed Nov 22, 2017
1 parent d40f13c commit 773d7fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Tests/t_ldapobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ def test006_sasl_extenal_bind_s(self):
l = self.ldap_object_class(self.server.ldapi_uri)
l.sasl_external_bind_s(authz_id=authz_id)
self.assertEqual(l.whoami_s(), authz_id.lower())

def test007_timeout(self):
l = self.ldap_object_class(self.server.ldap_uri)
m = l.search_ext(self.server.suffix, ldap.SCOPE_SUBTREE, '(objectClass=*)')
l.abandon(m)
with self.assertRaises(ldap.TIMEOUT):
result = l.result(m, timeout=0.001)


class Test01_ReconnectLDAPObject(Test00_SimpleLDAPObject):
Expand Down

0 comments on commit 773d7fb

Please sign in to comment.