Package ldaptor :: Module testutil :: Class LDAPClientTestDriver
[show private | hide private]
[frames | no frames]

Class LDAPClientTestDriver


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)
  connectionLost(self, reason)
Called when TCP connection has been lost
  connectionMade(self)
TCP connection has opened
  send(self, op)
  send_multiResponse(self, op, handler, *args, **kwargs)
  send_noResponse(self, op)
  unbind(self)
  _response(self)

Method Details

connectionLost(self, reason=None)

Called when TCP connection has been lost

connectionMade(self)

TCP connection has opened

Generated by Epydoc 2.1 on Sat Aug 26 13:54:32 2006 http://epydoc.sf.net