Merge pull request #50929 from twangboy/fix_test_lgpo_netsh_2018.3

Fix `unit.utils.test_lgpo_netsh` on Windows for Py3 (2018.3)
This commit is contained in:
Daniel Wozniak 2018-12-20 10:50:36 -07:00 committed by GitHub
commit 421e4f459f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -335,6 +335,7 @@ class WinLgpoNetshTestCase(TestCase):
@destructiveTest
def test_set_firewall_settings_fwrules_local_enable(self):
self.assertRaises(
CommandExecutionError,
win_lgpo_netsh.set_settings,
profile='domain',
setting='localfirewallrules',
@ -366,6 +367,7 @@ class WinLgpoNetshTestCase(TestCase):
@destructiveTest
def test_set_firewall_settings_consecrules_local_enable(self):
self.assertRaises(
CommandExecutionError,
win_lgpo_netsh.set_settings,
profile='domain',
setting='localconsecrules',