class documentation

class LDAPClientTestDriver: (source)

View In Hierarchy

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 assertNothingSent Undocumented
Method assertSent Undocumented
Method connectionLost Called when TCP connection has been lost
Method connectionMade TCP connection has opened
Method send Undocumented
Method send_multiResponse Undocumented
Method send_multiResponse_ Undocumented
Method send_multiResponse_ex Undocumented
Method send_noResponse Undocumented
Method unbind Undocumented
Class Variable fakeUnbindResponse Undocumented
Instance Variable connected Undocumented
Instance Variable responses Undocumented
Instance Variable sent Undocumented
Instance Variable transport Undocumented
Method _response Undocumented
def __init__(self, *responses): (source)

Undocumented

def assertNothingSent(self): (source)

Undocumented

def assertSent(self, *shouldBeSent): (source)

Undocumented

def connectionLost(self, reason=None): (source)

Called when TCP connection has been lost

def connectionMade(self): (source)

TCP connection has opened

def send(self, op): (source)

Undocumented

def send_multiResponse(self, op, handler, *args, **kwargs): (source)

Undocumented

def send_multiResponse_(self, op, controls, return_controls, handler, *args, **kwargs): (source)

Undocumented

def send_multiResponse_ex(self, op, controls, handler, *args, **kwargs): (source)

Undocumented

def send_noResponse(self, op): (source)

Undocumented

def unbind(self): (source)

Undocumented

fakeUnbindResponse: str = (source)

Undocumented

connected: int = (source)

Undocumented

responses = (source)

Undocumented

Undocumented

transport = (source)

Undocumented

def _response(self): (source)

Undocumented