module documentation
Tests for twisted.names.dns.
Class |
|
Tests for constructor arguments and their associated attributes that are common to both twisted.names.dns._EDNSMessage and dns.Message . |
Class |
|
Tests for dns._compactRepr . |
Class |
|
Helper methods for verifying default attribute values and corresponding constructor arguments. |
Class |
|
Test various aspects of dns.DNSDatagramProtocol . |
Class |
|
Test various aspects of dns.DNSProtocol . |
Class |
|
No class docstring; 5/5 methods documented |
Class |
|
Tests for twisted.names.dns._EDNSMessage constructor arguments that are shared with dns.Message . |
Class |
|
Tests for the encoding and decoding of various EDNS messages. |
Class |
|
Tests for equality between dns._EDNSMessage instances. |
Class |
|
Tests for dns._EDNSMessage . |
Class |
|
Tests for the encoding and decoding of various standard (non-EDNS) messages by dns._EDNSMessage . |
Class |
|
Tests for the equality and non-equality behavior of record classes. |
Class |
|
An example class for use in dns._compactRepr tests. It follows the pattern of initialiser settable flags, fields and sections found in dns.Message and dns._EDNSMessage . |
Class |
|
Tests for twisted.names.dns._isSubdomainOf . |
Class |
|
A minimal authoritative message. |
Class |
|
A wrapper around dns.Message which is comparable so that it can be tested using some of the dns._EDNSMessage tests. |
Class |
|
Tests for the rich comparison of dns.Message instances. |
Class |
|
An example of a fully populated non-edns response message. |
Class |
|
Tests for twisted.names.dns.Message constructor arguments that are shared with dns._EDNSMessage . |
Class |
|
An example of a fully populated edns response message. |
Class |
|
An example of an EDNS message with an extended RCODE. |
Class |
|
A minimal EDNS query message. |
Class |
|
Generate byte string and constructor arguments for an empty dns._EDNSMessage . |
Class |
|
A minimal non-authoritative message. |
Class |
|
Tests for the encoding and decoding of various standard (non-EDNS) messages by dns.Message . |
Class |
|
Tests for twisted.names.dns.Message . |
Class |
|
An empty response message whose TR bit is set to 1. |
Class |
|
Tests for Name , the representation of a single domain name with support for encoding into and decoding from DNS message format. |
Class |
|
Tests for twisted.names.dns._nameToLabels . |
Class |
|
Tests for twisted.names.dns._OPTHeader . |
Class |
|
Generate byte and instance representations of an dns._OPTHeader where all attributes are set to non-default values. |
Class |
|
Tests for dns._OPTVariableOption . |
Class |
|
Tests for dns._ord2bytes . |
Class |
|
Tests for the __repr__ implementation of record classes. |
Class |
|
Tests for dns._responseFromMessage . |
Class |
|
Encoding and then decoding various objects. |
Class |
|
Tests for twisted.names.dns.RRHeader . |
Class |
|
Tests for the encoding and decoding of various standard (not EDNS) messages. |
Class |
|
Tests for dns.str2name . |
Class |
|
Pretend to be a DNS query processor for a DNSDatagramProtocol. |
Class |
|
Pretend to be a DNS query processor for a DNSProtocol. |
Exception |
|
An exception which can be raised by fakes to test that the fake is called with expected arguments. |
Function | assert |
Assert that descendant *is not* a subdomain of ancestor. |
Function | assert |
Assert that descendant *is* a subdomain of ancestor. |
Function | verify |
Verify that an attribute has the expected default value and that a corresponding argument passed to a constructor is assigned to that attribute. |
Constant | MESSAGE |
Undocumented |
Constant | MESSAGE |
Undocumented |
Constant | RECORD |
Undocumented |
Assert that descendant *is not* a subdomain of ancestor.
Parameters | |
testunittest.SynchronousTestCase | The test case on which to run the assertions. |
descendant:str | The subdomain name to test. |
ancestor:str | The superdomain name to test. |
Assert that descendant *is* a subdomain of ancestor.
Parameters | |
testunittest.SynchronousTestCase | The test case on which to run the assertions. |
descendant:str | The subdomain name to test. |
ancestor:str | The superdomain name to test. |
def verifyConstructorArgument(testCase, cls, argName, defaultVal, altVal, attrName=None):
(source)
¶
Verify that an attribute has the expected default value and that a corresponding argument passed to a constructor is assigned to that attribute.
Parameters | |
testunittest.TestCase | The TestCase whose assert methods will be called. |
cls:type | The constructor under test. |
argstr | The name of the constructor argument under test. |
defaultobject | The expected default value of attrName / argName |
altobject | A value which is different from the default. Used to test that supplied constructor arguments are actually assigned to the correct attribute. |
attrstr | The name of the attribute under test if different from argName. Defaults to argName |
Undocumented
Value |
|