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.
Method Summary |
|
__init__(self,
*responses)
|
|
assertNothingSent(self)
|
|
assertSent(self,
*shouldBeSent)
|
|
queue(self,
x,
callback,
*args,
**kwargs)
|