@patch('salt.modules.iptables._conf', MagicMock(return_value=False))
    @patch('os.path.isdir', MagicMock(return_value=True))
    def test_save(self):
        mock = MagicMock(return_value=True)
        with patch.dict(iptables.__salt__, {'cmd.run': mock,
                                            'file.write': mock}):
            self.assertTrue(iptables.save(filename='/xyz', family='ipv4'))

    # 'check' function tests: 1
Creates the Earth Engine flood detection function and adds it to the map
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/iptables_test.py/IptablesTestCase.test_save--crossover with--dataset/ETHPy150Open nasa/CrisisMappingToolkit/cmt/util/production_gui.py/ProductionGui._loadFloodDetect