class documentation
class CommonConstructorTestsMixin: (source)
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 |
dns._EDNSMessage.additional defaults to []. |
Method | test |
dns._EDNSMessage.answer defaults to False and can be overridden in the constructor. |
Method | test |
dns._EDNSMessage.answers defaults to []. |
Method | test |
dns._EDNSMessage.auth defaults to False and can be overridden in the constructor. |
Method | test |
dns._EDNSMessage.authority defaults to []. |
Method | test |
dns._EDNSMessage.id defaults to 0 and can be overridden in the constructor. |
Method | test_max |
dns._EDNSMessage.maxSize defaults to 512 and can be overridden in the constructor. |
Method | test_op |
dns._EDNSMessage.opCode defaults to dns.OP_QUERY and can be overridden in the constructor. |
Method | test |
dns._EDNSMessage.queries defaults to []. |
Method | test_r |
dns._EDNSMessage.rCode defaults to 0 and can be overridden in the constructor. |
Method | test_rec |
dns._EDNSMessage.recAv defaults to False and can be overridden in the constructor. |
Method | test_rec |
dns._EDNSMessage.recDes defaults to False and can be overridden in the constructor. |
Method | test |
dns._EDNSMessage.trunc defaults to False and can be overridden in the constructor. |