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.iddefaults to0and can be overridden in the constructor. | 
| Method | test_answer | dns._EDNSMessage.answerdefaults toFalseand can be overridden in the 
constructor. | 
| Method | test_opCode | dns._EDNSMessage.opCodedefaults todns.OP_QUERYand can be overridden in the 
constructor. | 
| Method | test_auth | dns._EDNSMessage.authdefaults toFalseand can be overridden in the 
constructor. | 
| Method | test_trunc | dns._EDNSMessage.truncdefaults toFalseand can be overridden in the 
constructor. | 
| Method | test_recDes | dns._EDNSMessage.recDesdefaults toFalseand can be overridden in the 
constructor. | 
| Method | test_recAv | dns._EDNSMessage.recAvdefaults toFalseand can be overridden in the 
constructor. | 
| Method | test_rCode | dns._EDNSMessage.rCodedefaults to0and can be overridden in the constructor. | 
| Method | test_maxSize | dns._EDNSMessage.maxSizedefaults to512and can be overridden in the constructor. | 
| Method | test_queries | dns._EDNSMessage.queriesdefaults to[]. | 
| Method | test_answers | dns._EDNSMessage.answersdefaults to[]. | 
| Method | test_authority | dns._EDNSMessage.authoritydefaults to[]. | 
| Method | test_additional | dns._EDNSMessage.additionaldefaults 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.