mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
removed pylint error
This commit is contained in:
parent
1ae01547e3
commit
d1b4fce53e
@ -207,7 +207,7 @@ class IptablesTestCase(TestCase):
|
||||
|
||||
_rule = 'm state --state RELATED,ESTABLISHED -j ACCEPT'
|
||||
mock = MagicMock(side_effect=[True, False])
|
||||
with patch.dict(iptables.__salt__, {'cmd.run': mock,}):
|
||||
with patch.dict(iptables.__salt__, {'cmd.run': mock}):
|
||||
self.assertTrue(iptables.check(table='filter', chain='INPUT',
|
||||
rule=_rule, family='ipv4'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user