From: Peter van Dijk Date: Thu, 3 Oct 2019 13:26:23 +0000 (+0200) Subject: (uselessly) add eqdnsmessage to auth testing X-Git-Tag: dnsdist-1.4.0-rc4~38^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7f9136f4c1cce3a9e92e5639994952391908b6d;p=pdns (uselessly) add eqdnsmessage to auth testing --- diff --git a/regression-tests.auth-py/authtests.py b/regression-tests.auth-py/authtests.py index 9737ef868..cedbb3a45 100644 --- a/regression-tests.auth-py/authtests.py +++ b/regression-tests.auth-py/authtests.py @@ -14,8 +14,9 @@ import dns import dns.message from pprint import pprint +from eqdnsmessage import AssertEqualDNSMessageMixin -class AuthTest(unittest.TestCase): +class AuthTest(AssertEqualDNSMessageMixin, unittest.TestCase): """ Setup auth required for the tests """ @@ -341,7 +342,7 @@ options { def setUp(self): # This function is called before every tests - return + super(AuthTest, self).setUp() ## Functions for comparisons def assertMessageHasFlags(self, msg, flags, ednsflags=[]): diff --git a/regression-tests.auth-py/eqdnsmessage.py b/regression-tests.auth-py/eqdnsmessage.py new file mode 120000 index 000000000..d9a56a87a --- /dev/null +++ b/regression-tests.auth-py/eqdnsmessage.py @@ -0,0 +1 @@ +../contrib/assert-equal-DNSMessage/eqdnsmessage.py \ No newline at end of file