class documentation

Pretend to be a DNS query processor for a DNSDatagramProtocol.

Method __init__ Initialize the controller: create a list of messages.
Method messageReceived Save the message so that it can be checked during the tests.
Instance Variable messages the list of received messages.
def __init__(self): (source)

Initialize the controller: create a list of messages.

def messageReceived(self, msg, proto, addr=None): (source)

Save the message so that it can be checked during the tests.

messages: list of (msg, protocol, address) = (source)

the list of received messages.