@patch('os.path.isfile', MagicMock(return_value=True))
    def test_persist_success(self):
        to_write = '#\n# Kernel sysctl configuration\n#\n'
        m_calls_list = [call.writelines(['net.inet.icmp.icmplim=50', '\n'])]
        with patch('salt.utils.fopen', mock_open(read_data=to_write)) as m_open:
            mac_sysctl.persist('net.inet.icmp.icmplim', 50, config=to_write)
            helper_open = m_open()
            calls_list = helper_open.method_calls
            self.assertEqual(calls_list, m_calls_list)
test to make sure int32 type numpy arrays are accepted
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/mac_sysctl_test.py/DarwinSysctlTestCase.test_persist_success--crossover with--dataset/ETHPy150Open NeuralEnsemble/python-neo/neo/test/coretest/test_base.py/TestBaseNeoNumpyArrayTypes.test_numpy_array_int32