@patch.object(iptables, '_has_option', MagicMock(return_value=True))
    def test_flush(self):
        mock_cmd = MagicMock(return_value=True)
        with patch.dict(iptables.__salt__, {'cmd.run': mock_cmd}):
            self.assertTrue(iptables.flush(table='filter',
                                                       chain='INPUT',
                                                       family='ipv4'))
Test if it flush the chain in the specified table,
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/iptables_test.py/IptablesTestCase.test_flush