class documentation

class TestController:

Known subclasses: twisted.names.test.test_dns.TestTCPController

Constructor: TestController()

View In Hierarchy

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):

Initialize the controller: create a list of messages.

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

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

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

the list of received messages.