Commit 834b01c1 authored by Daniel Salzman's avatar Daniel Salzman

func-tests: print RCODE in textual form

parent bfcf0be6
......@@ -62,11 +62,11 @@ class Response(object):
self._check_question()
# Check rcode.
if type(rcode) is str:
rc = dns.rcode.from_text(rcode)
if type(rcode) is not str:
rc = dns.rcode.to_text(rcode)
else:
rc = rcode
compare(self.resp.rcode(), rc, "RCODE")
compare(dns.rcode.to_text(self.resp.rcode()), rc, "RCODE")
# Check rdata only if NOERROR.
if rc != 0 or rdata == None:
......
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