TestIPReverseDNS¶
-
class
tests.test_rdns.
TestIPReverseDNS
(methodName='runTest')[source]¶ Unit testing for the reverse DNS functions in
privex.helpers.net
- Covers:
positive resolution tests (generate standard rDNS domain from clean input)
positive boundary tests (confirm valid results with range of boundaries)
negative address tests (ensure errors thrown for invalid v4/v6 addresses)
negative boundary tests (ensure errors thrown for invalid v4/v6 rDNS boundaries)
-
__init__
(methodName='runTest') Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
Methods¶
Methods
Test generating 16-bit v4 boundary |
|
Test generating 24-bit v4 boundary |
|
Raise if IPv4 boundary isn’t divisable by 8 |
|
Raise if IPv4 boundary is too short |
|
Raise if IPv4 address has < 4 octets |
|
Raise if IPv4 address has octet out of range |
|
Test generating rDNS for standard v4 |
|
Test generating 16-bit v6 boundary |
|
Test generating 32-bit v6 boundary |
|
Raise if IPv6 boundary isn’t dividable by 4 |
|
Raise if IPv6 boundary is too short |
|
Raise if IPv6 address has invalid block formatting |
|
Raise if v6 address has invalid chars |
|
Test generating rDNS for standard v6 |