Skip to content

Commit aab373b

Browse files
author
stroeder
committed
another LDAPObject test
1 parent 37983e2 commit aab373b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Tests/t_ldapobject.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,13 @@ def test006_sasl_extenal_bind_s(self):
188188
l = self.ldap_object_class(self.server.ldapi_uri)
189189
l.sasl_external_bind_s(authz_id=authz_id)
190190
self.assertEqual(l.whoami_s(), authz_id.lower())
191+
192+
def test007_timeout(self):
193+
l = self.ldap_object_class(self.server.ldap_uri)
194+
m = l.search_ext(self.server.suffix, ldap.SCOPE_SUBTREE, '(objectClass=*)')
195+
l.abandon(m)
196+
with self.assertRaises(ldap.TIMEOUT):
197+
result = l.result(m, timeout=0.001)
191198

192199

193200
class Test01_ReconnectLDAPObject(Test00_SimpleLDAPObject):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy