2
0
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:
Michal Nowak 2024-02-22 16:20:30 +01:00
parent 5694c52f52
commit 1e52a11343
No known key found for this signature in database

View File

@ -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