class documentation

Tests for constructor arguments and their associated attributes that are common to both twisted.names.dns._EDNSMessage and dns.Message.

TestCase classes that use this mixin must provide a messageFactory method which accepts any argment supported by dns.Message.__init__.

TestCases must also mixin ConstructorTestsMixin which provides some custom assertions for testing constructor arguments.

Method test_additional dns._EDNSMessage.additional defaults to [].
Method test_answer dns._EDNSMessage.answer defaults to False and can be overridden in the constructor.
Method test_answers dns._EDNSMessage.answers defaults to [].
Method test_auth dns._EDNSMessage.auth defaults to False and can be overridden in the constructor.
Method test_authority dns._EDNSMessage.authority defaults to [].
Method test_id dns._EDNSMessage.id defaults to 0 and can be overridden in the constructor.
Method test_maxSize dns._EDNSMessage.maxSize defaults to 512 and can be overridden in the constructor.
Method test_opCode dns._EDNSMessage.opCode defaults to dns.OP_QUERY and can be overridden in the constructor.
Method test_queries dns._EDNSMessage.queries defaults to [].
Method test_rCode dns._EDNSMessage.rCode defaults to 0 and can be overridden in the constructor.
Method test_recAv dns._EDNSMessage.recAv defaults to False and can be overridden in the constructor.
Method test_recDes dns._EDNSMessage.recDes defaults to False and can be overridden in the constructor.
Method test_trunc dns._EDNSMessage.trunc defaults to False and can be overridden in the constructor.
def test_additional(self): (source)
def test_answer(self): (source)

dns._EDNSMessage.answer defaults to False and can be overridden in the constructor.

def test_answers(self): (source)

dns._EDNSMessage.answers defaults to [].

def test_auth(self): (source)

dns._EDNSMessage.auth defaults to False and can be overridden in the constructor.

def test_authority(self): (source)
def test_id(self): (source)

dns._EDNSMessage.id defaults to 0 and can be overridden in the constructor.

def test_maxSize(self): (source)

dns._EDNSMessage.maxSize defaults to 512 and can be overridden in the constructor.

def test_opCode(self): (source)

dns._EDNSMessage.opCode defaults to dns.OP_QUERY and can be overridden in the constructor.

def test_queries(self): (source)

dns._EDNSMessage.queries defaults to [].

def test_rCode(self): (source)

dns._EDNSMessage.rCode defaults to 0 and can be overridden in the constructor.

def test_recAv(self): (source)

dns._EDNSMessage.recAv defaults to False and can be overridden in the constructor.

def test_recDes(self): (source)

dns._EDNSMessage.recDes defaults to False and can be overridden in the constructor.

def test_trunc(self): (source)

dns._EDNSMessage.trunc defaults to False and can be overridden in the constructor.