Skip to content
Snippets Groups Projects
Commit b0d6acc6 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

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

parent 8a8c167e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment