From: Peter van Dijk Date: Mon, 31 May 2021 14:46:22 +0000 (+0200) Subject: authtests.py: fix rcode comparison and reporting X-Git-Tag: auth-4.5.0-beta1~1^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfaab47110aa43a9275cf909180248987725bdc0;p=thirdparty%2Fpdns.git authtests.py: fix rcode comparison and reporting --- diff --git a/regression-tests.auth-py/authtests.py b/regression-tests.auth-py/authtests.py index c80311ec4d..f9bbe80b43 100644 --- a/regression-tests.auth-py/authtests.py +++ b/regression-tests.auth-py/authtests.py @@ -547,8 +547,8 @@ options { raise TypeError("rcode is neither a str nor int") if msg.rcode() != rcode: - msgRcode = dns.rcode._by_value[msg.rcode()] - wantedRcode = dns.rcode._by_value[rcode] + msgRcode = dns.rcode.to_text(msg.rcode()) + wantedRcode = dns.rcode.to_text(rcode) raise AssertionError("Rcode for %s is %s, expected %s." % (msg.question[0].to_text(), msgRcode, wantedRcode))