Skip to content

Commit 11eab1d

Browse files
author
BiffoBear
committed
Renamed constants in tests.
1 parent 6e1988d commit 11eab1d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/test_dns_server_nonbreaking_changes.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ def wrench(mocker):
2828

2929
class TestDNSInit:
3030
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
3434

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)
3838

3939
# 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)
4545

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
4747

4848
def test_dns_setup_default(self, wiznet, wrench):
4949
# Test with DNS address as string and default values.

0 commit comments

Comments
 (0)