A test driver that looks somewhat like a real LDAPClient.
Pass in a list of lists of LDAPProtocolResponses. For each sent LDAP
message, the first item of said list is iterated through, and all the
items are sent as responses to the callback. The sent LDAP messages are
stored in self.sent, so you can assert that the sent messages are what
they are supposed to be.
It is also possible to include a Failure instance instead of a list of
LDAPProtocolResponses which will cause the errback to be called with the
failure.
|
|
|
|
|
send_multiResponse(self,
op,
handler,
*args,
**kwargs) |
source code
|
|
|
|
|
|
|
|
|
|
|
connectionMade(self)
TCP connection has opened |
source code
|
|
|
connectionLost(self,
reason=None)
Called when TCP connection has been lost |
source code
|
|
|
|