Skip to content

Commit 30a3be6

Browse files
author
stroeder
committed
cosmetics in TestLdapCExtension.test_errno107()
1 parent 10a4d50 commit 30a3be6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tests/t_cext.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ def test_simple_anonymous_bind(self):
166166
self.assertEquals(result, _ldap.RES_SEARCH_RESULT)
167167
self.assertEquals(pmsg[0][0], "") # rootDSE has no dn
168168
self.assertEquals(msgid, m)
169-
self.assertTrue(pmsg[0][1].has_key('objectClass'))
169+
root_dse = pmsg[0][1]
170+
self.assertTrue('objectClass' in root_dse)
171+
self.assertTrue('OpenLDAProotDSE' in root_dse['objectClass'])
172+
self.assertTrue('namingContexts' in root_dse)
173+
self.assertEquals(root_dse['namingContexts'], [self.server.suffix])
170174

171175
def test_unbind(self):
172176
l = self._open_conn()

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