twisted.names.test.test_dns.OPTNonStandardAttributes(object) class documentationtwisted.names.test.test_dns
(View In Hierarchy)
Generate byte and instance representations of an dns._OPTHeader 
where all attributes are set to non-default values.
For testing whether attributes have really been read from the byte string during decoding.
| Class Method | bytes | Return bytesrepresenting an encoded OPT record. | 
| Class Method | object | Return a new dns._OPTHeaderinstance. | 
Return bytes
representing an encoded OPT record.
| Parameters | excludeName | A flag that controls whether to exclude the name field. This allows a 
non-standard name to be prepended during the test. (type: bool) | 
| excludeOptions | A flag that controls whether to exclude the RDLEN field. This allows 
encoded variable options to be appended during the test. (type: bool) | |
| Returns | bytesrepresenting the encoded OPT record returned byobject. | |
Return a new dns._OPTHeader 
instance.
| Returns | A dns._OPTHeaderinstance with attributes that match the encoded record returned bybytes. | |