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. |
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."
Parameters | testCase | The unittest.TestCase
on which to call assertion methods. (type: unittest.TestCase ) |
s1 | The first value to compare. (type: SerialNumber ) | |
s2 | The second value to compare. (type: SerialNumber ) | |
See Also | https://tools.ietf.org/html/rfc1982#section-3.2 |