Fix tests for #24985

This commit is contained in:
Mike Place 2015-07-13 16:19:21 -06:00
parent 0ed289e3f4
commit 9cc897fd69

View File

@ -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,