class documentation
class LDAPClientTestDriver: (source)
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.
Method | __init__ |
Undocumented |
Method | assert |
Undocumented |
Method | assert |
Undocumented |
Method | connection |
Called when TCP connection has been lost |
Method | connection |
TCP connection has opened |
Method | send |
Undocumented |
Method | send_multi |
Undocumented |
Method | send_multi |
Undocumented |
Method | send_multi |
Undocumented |
Method | send_no |
Undocumented |
Method | unbind |
Undocumented |
Class Variable | fake |
Undocumented |
Instance Variable | connected |
Undocumented |
Instance Variable | responses |
Undocumented |
Instance Variable | sent |
Undocumented |
Instance Variable | transport |
Undocumented |
Method | _response |
Undocumented |