diff --git a/Tests/t_cext.py b/Tests/t_cext.py index 3cbdbe7..cd171b6 100644 --- a/Tests/t_cext.py +++ b/Tests/t_cext.py @@ -576,6 +576,13 @@ def test_whoami_anonymous(self): r = l.whoami_s() self.assertEqual("", r) + def test_whoami_after_unbind(self): + # https://github.com/pyldap/pyldap/issues/29 + l = self._open_conn(bind=True) + l.unbind_ext() + with self.assertRaises(_ldap.LDAPError): + l.whoami_s() + def test_passwd(self): l = self._open_conn() # first, create a user to change password on