]> granicus.if.org Git - pdns/commitdiff
dnsdist: Fix the console ACL test, assertRaises() is tricky!
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 28 Mar 2018 15:25:11 +0000 (17:25 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 28 Mar 2018 15:25:11 +0000 (17:25 +0200)
regression-tests.dnsdist/test_Console.py

index 8f1646a4dd323fd82da89e6b574b95f30d07a84d..0ab8c8fdbe92736281b835987343797fe5f4cb7d 100644 (file)
@@ -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()')