Skip to content

Commit

Permalink
more attribute checks in test_simple_anonymous_bind
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Apr 26, 2017
1 parent 30a3be6 commit 519d213
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Tests/t_cext.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,12 @@ def test_simple_anonymous_bind(self):
self.assertEquals(ctrls, [])

# see if we can get the rootdse while we're here
m = l.search_ext("", _ldap.SCOPE_BASE, '(objectClass=*)')
m = l.search_ext(
"",
_ldap.SCOPE_BASE,
'(objectClass=*)',
['objectClass', 'namingContexts'],
)
result, pmsg, msgid, ctrls = l.result4(m, _ldap.MSG_ALL, self.timeout)
self.assertEquals(result, _ldap.RES_SEARCH_RESULT)
self.assertEquals(pmsg[0][0], "") # rootDSE has no dn
Expand Down

0 comments on commit 519d213

Please sign in to comment.