mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Add isctest.check.rrsets_equal function
This commit is contained in:
parent
5694c52f52
commit
1e52a11343
@ -32,3 +32,10 @@ def rcode(message: dns.message.Message, expected_rcode) -> None:
|
|||||||
|
|
||||||
def noerror(message: dns.message.Message) -> None:
|
def noerror(message: dns.message.Message) -> None:
|
||||||
rcode(message, dns_rcode.NOERROR)
|
rcode(message, dns_rcode.NOERROR)
|
||||||
|
|
||||||
|
|
||||||
|
def rrsets_equal(first_rrset: dns.rrset.RRset, second_rrset: dns.rrset.RRset) -> None:
|
||||||
|
for rr in first_rrset:
|
||||||
|
assert rr in second_rrset
|
||||||
|
for rr in second_rrset:
|
||||||
|
assert rr in first_rrset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user