Test cases for twisted.names.rfc1982.

Class SerialNumberTests Tests for SerialNumber.
Function assertUndefinedComparison A custom assertion for SerialNumber values that cannot be meaningfully compared.
Class SerialNumber2BitTests Tests for correct answers to example calculations in RFC1982 5.1.
Class SerialNumber8BitTests Tests for correct answers to example calculations in RFC1982 5.2.
def assertUndefinedComparison(testCase, s1, s2):

A custom assertion for SerialNumber values that cannot be meaningfully compared.

"Note that there are some pairs of values s1 and s2 for which s1 is not equal to s2, but for which s1 is neither greater than, nor less than, s2. An attempt to use these ordering operators on such pairs of values produces an undefined result."

ParameterstestCaseThe unittest.TestCase on which to call assertion methods. (type: unittest.TestCase)
s1The first value to compare. (type: SerialNumber)
s2The second value to compare. (type: SerialNumber)
See Alsohttps://tools.ietf.org/html/rfc1982#section-3.2
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.