Skip to content
Snippets Groups Projects
Commit 4c04f04c authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

functests: fixed response diff

parent 8bc70d4f
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ class Response(object):
compare(option.data.decode('ascii'), nsid, "txt NSID")
def diff(self, resp, flags=True, answer=True, authority=True, \
additional=False):
additional=True):
'''Compares specified response sections against another response'''
if flags:
......@@ -121,16 +121,16 @@ class Response(object):
resp.resp.answer, resp.srv.name, \
"ANSWER")
if authority:
compare_sections(self.resp.answer, self.srv.name, \
resp.resp.answer, resp.srv.name, \
compare_sections(self.resp.authority, self.srv.name, \
resp.resp.authority, resp.srv.name, \
"AUTHORITY")
if additional:
compare_sections(self.resp.answer, self.srv.name, \
resp.resp.answer, resp.srv.name, \
compare_sections(self.resp.additional, self.srv.name, \
resp.resp.additional, resp.srv.name, \
"ADDITIONAL")
def cmp(self, server, flags=True, answer=True, authority=True, \
additional=False):
additional=True):
'''Asks server for the same question an compares specified sections'''
resp = server.dig(**self.args)
......
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