diff --git a/bin/tests/system/isctest/check.py b/bin/tests/system/isctest/check.py index 1fabad7477..054f0f8b76 100644 --- a/bin/tests/system/isctest/check.py +++ b/bin/tests/system/isctest/check.py @@ -32,3 +32,10 @@ def rcode(message: dns.message.Message, expected_rcode) -> None: def noerror(message: dns.message.Message) -> None: 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