twisted.names.test.test_dns.CommonConstructorTestsMixin(object) class documentationtwisted.names.test.test_dns
(View In Hierarchy)
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 []. |
dns._EDNSMessage.answer
defaults to False and can be overridden in the
constructor.
dns._EDNSMessage.opCode
defaults to dns.OP_QUERY and can be overridden in the
constructor.
dns._EDNSMessage.auth
defaults to False and can be overridden in the
constructor.
dns._EDNSMessage.trunc
defaults to False and can be overridden in the
constructor.
dns._EDNSMessage.recDes
defaults to False and can be overridden in the
constructor.
dns._EDNSMessage.recAv
defaults to False and can be overridden in the
constructor.
dns._EDNSMessage.rCode
defaults to 0 and can be overridden in the constructor.
dns._EDNSMessage.maxSize
defaults to 512 and can be overridden in the constructor.