Commit b0d6acc6 authored by Jan Včelák's avatar Jan Včelák 🚀

tests-extra: assert valid section name in Response.check_rr

parent 8a8c167e
......@@ -67,6 +67,7 @@ class Response(object):
if rtype is not None:
rtype = dns.rdatatype.from_text(rtype)
assert section in ["answer", "authority", "additional"]
assert rname or rtype
section_rrsets = getattr(self.resp, section)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment