Skip to content
Snippets Groups Projects
Commit 2d4c1b35 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

tests: reparse expected message to merge RRs

parent 9bf189f1
Branches
Tags
No related merge requests found
......@@ -40,7 +40,7 @@ class Entry:
""" Compare scripted reply to given message using single criteria. """
if code not in self.match_fields and 'all' not in self.match_fields:
return True
expected = self.message
expected = dns.message.from_text(self.message.to_text())
if code == 'opcode':
return self.__compare_val(expected.opcode(), msg.opcode())
elif code == 'qtype':
......
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