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)
  queue(self, x, callback, *args, **kwargs)

Generated by Epydoc 2.1 on Tue Aug 17 17:08:19 2004 http://epydoc.sf.net