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.
def _verifyConstructorArgument(self, argName, defaultVal, altVal):

Wrap verifyConstructorArgument to provide simpler interface for testing Message and _EDNSMessage constructor arguments.

ParametersargNameThe name of the constructor argument.
defaultValThe expected default value.
altValAn alternative value which is expected to be assigned to a correspondingly named attribute.
def _verifyConstructorFlag(self, argName, defaultVal):

Wrap verifyConstructorArgument to provide simpler interface for testing _EDNSMessage constructor flags.

ParametersargNameThe name of the constructor flag argument
defaultValThe expected default value of the flag
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.