@@ -28,22 +28,22 @@ def wrench(mocker):
28
28
29
29
class TestDNSInit :
30
30
def test_constants (self ):
31
- assert wiz_dns .QUERY_FLAG == const (0x00 )
32
- assert wiz_dns .OPCODE_STANDARD_QUERY == const (0x00 )
33
- assert wiz_dns .RECURSION_DESIRED_FLAG == 1 << 8
31
+ assert wiz_dns ._QUERY_FLAG == const (0x00 )
32
+ assert wiz_dns ._OPCODE_STANDARD_QUERY == const (0x00 )
33
+ assert wiz_dns ._RECURSION_DESIRED_FLAG == 1 << 8
34
34
35
- assert wiz_dns .TYPE_A == const (0x0001 )
36
- assert wiz_dns .CLASS_IN == const (0x0001 )
37
- assert wiz_dns .DATA_LEN == const (0x0004 )
35
+ assert wiz_dns ._TYPE_A == const (0x0001 )
36
+ assert wiz_dns ._CLASS_IN == const (0x0001 )
37
+ assert wiz_dns ._DATA_LEN == const (0x0004 )
38
38
39
39
# Return codes for gethostbyname
40
- assert wiz_dns .SUCCESS == const (1 )
41
- assert wiz_dns .TIMED_OUT == const (- 1 )
42
- assert wiz_dns .INVALID_SERVER == const (- 2 )
43
- assert wiz_dns .TRUNCATED == const (- 3 )
44
- assert wiz_dns .INVALID_RESPONSE == const (- 4 )
40
+ assert wiz_dns ._SUCCESS == const (1 )
41
+ assert wiz_dns ._TIMED_OUT == const (- 1 )
42
+ assert wiz_dns ._INVALID_SERVER == const (- 2 )
43
+ assert wiz_dns ._TRUNCATED == const (- 3 )
44
+ assert wiz_dns ._INVALID_RESPONSE == const (- 4 )
45
45
46
- assert wiz_dns .DNS_PORT == const (0x35 ) # port used for DNS request
46
+ assert wiz_dns ._DNS_PORT == const (0x35 ) # port used for DNS request
47
47
48
48
def test_dns_setup_default (self , wiznet , wrench ):
49
49
# Test with DNS address as string and default values.
0 commit comments