From: Remi Gacogne Date: Wed, 28 Mar 2018 15:25:11 +0000 (+0200) Subject: dnsdist: Fix the console ACL test, assertRaises() is tricky! X-Git-Tag: dnsdist-1.3.0~8^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6399%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix the console ACL test, assertRaises() is tricky! --- diff --git a/regression-tests.dnsdist/test_Console.py b/regression-tests.dnsdist/test_Console.py index 8f1646a4dd..0ab8c8fdbe 100644 --- a/regression-tests.dnsdist/test_Console.py +++ b/regression-tests.dnsdist/test_Console.py @@ -40,4 +40,4 @@ class TestConsoleNotAllowed(DNSDistTest): """ Console: Not allowed by the ACL """ - self.assertRaises(SocketError, self.sendConsoleCommand('showVersion()')) + self.assertRaises(SocketError, self.sendConsoleCommand, 'showVersion()')