#NEWLINE# def testPasswordSetting_ExtendedOperation( self ) : #NEWLINE# #INDENT# 'LDAPEntry.setPassword_ExtendedOperation(newPasswd=...) changes the password.' #NEWLINE# client = LDAPClientTestDriver ( [ pureldap . LDAPExtendedResponse ( resultCode = 0 , matchedDN = '' , errorMessage = '' ) ] ) #NEWLINE# o = ldapsyntax . LDAPEntry ( client = client , dn = 'cn=foo,dc=example,dc=com' ) #NEWLINE# d = o . setPassword_ExtendedOperation ( newPasswd = 'new' ) #NEWLINE# def cb( dummy ) : #NEWLINE# #INDENT# client . assertSent ( pureldap . LDAPPasswordModifyRequest ( userIdentity = 'cn=foo,dc=example,dc=com' , newPasswd = 'new' ) ) #NEWLINE# #UNINDENT# d . addCallback ( cb ) #NEWLINE# return d