Known subclasses: twisted.names.test.test_dns.EDNSMessageConstructorTests, twisted.names.test.test_dns.MessageConstructorTests

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_id dns._EDNSMessage.id defaults to 0 and can be overridden in the constructor.
Method test_answer dns._EDNSMessage.answer defaults to False 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_auth dns._EDNSMessage.auth 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.
Method test_recDes dns._EDNSMessage.recDes defaults to False 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_rCode dns._EDNSMessage.rCode 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_queries dns._EDNSMessage.queries defaults to [].
Method test_answers dns._EDNSMessage.answers defaults to [].
Method test_authority dns._EDNSMessage.authority defaults to [].
Method test_additional dns._EDNSMessage.additional defaults to [].
def test_id(self):

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

def test_answer(self):

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

def test_opCode(self):

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

def test_auth(self):

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

def test_trunc(self):

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

def test_recDes(self):

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

def test_recAv(self):

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

def test_rCode(self):

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

def test_maxSize(self):

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

def test_queries(self):

dns._EDNSMessage.queries defaults to [].

def test_answers(self):

dns._EDNSMessage.answers defaults to [].

def test_authority(self):

dns._EDNSMessage.authority defaults to [].

def test_additional(self):

dns._EDNSMessage.additional defaults to [].

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.