diff --git a/tests/unit/modules/iptables_test.py b/tests/unit/modules/iptables_test.py index f6b57e98a3..0998349ea3 100644 --- a/tests/unit/modules/iptables_test.py +++ b/tests/unit/modules/iptables_test.py @@ -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'))