twisted.names.test.test_dns.ConstructorTestsMixin(object)
class documentationtwisted.names.test.test_dns
(View In Hierarchy)
Known subclasses: twisted.names.test.test_dns.EDNSMessageConstructorTests, twisted.names.test.test_dns.EDNSMessageSpecificsTests, twisted.names.test.test_dns.MessageConstructorTests
Helper methods for verifying default attribute values and corresponding constructor arguments.
Method | _verifyConstructorArgument | Wrap verifyConstructorArgument
to provide simpler interface for testing Message and _EDNSMessage
constructor arguments. |
Method | _verifyConstructorFlag | Wrap verifyConstructorArgument
to provide simpler interface for testing _EDNSMessage constructor
flags. |
Wrap verifyConstructorArgument
to provide simpler interface for testing Message and _EDNSMessage
constructor arguments.
Parameters | argName | The name of the constructor argument. |
defaultVal | The expected default value. | |
altVal | An alternative value which is expected to be assigned to a correspondingly named attribute. |
Wrap verifyConstructorArgument
to provide simpler interface for testing _EDNSMessage constructor
flags.
Parameters | argName | The name of the constructor flag argument |
defaultVal | The expected default value of the flag |