mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix tests for #24985
This commit is contained in:
parent
0ed289e3f4
commit
9cc897fd69
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user