From 9cc897fd69f9f3a6e94d906f99062a0e1dd961e5 Mon Sep 17 00:00:00 2001 From: Mike Place Date: Mon, 13 Jul 2015 16:19:21 -0600 Subject: [PATCH] Fix tests for #24985 --- tests/unit/modules/iptables_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/modules/iptables_test.py b/tests/unit/modules/iptables_test.py index 911a9523bf..8f5d80927d 100644 --- a/tests/unit/modules/iptables_test.py +++ b/tests/unit/modules/iptables_test.py @@ -357,6 +357,7 @@ class IptablesTestCase(TestCase): # 'append' function tests: 1 @patch.object(iptables, '_has_option', MagicMock(return_value=True)) + @patch.object(iptables, 'check', MagicMock(return_value=False)) def test_append(self): ''' Test if it append a rule to the specified table/chain. @@ -383,6 +384,7 @@ class IptablesTestCase(TestCase): # 'insert' function tests: 1 @patch.object(iptables, '_has_option', MagicMock(return_value=True)) + @patch.object(iptables, 'check', MagicMock(return_value=False)) def test_insert(self): ''' Test if it insert a rule into the specified table/chain,