Skip to content
Snippets Groups Projects
Commit ae4aa3b9 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

func-tests: add ANY support to resp.count

parent 7dca4e8c
Branches
Tags
No related merge requests found
......@@ -174,11 +174,12 @@ class Response(object):
elif section == "authority":
sect = self.resp.authority
cnt = 0
for rrset in sect:
if rrset.rdtype == rtype:
return len(rrset)
else:
return 0
if rrset.rdtype == rtype or rtype == dns.rdatatype.ANY:
cnt += len(rrset)
return cnt
def check_nsec(self, nsec3=False, nonsec=False):
'''Checks if the response contains NSEC(3) records.'''
......
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