@patch('salt.utils.which', MagicMock(return_value=''))
    def test_arp(self):
        with patch.dict(network.__salt__,
                        {'cmd.run':
                         MagicMock(return_value='A,B,C,D\nE,F,G,H\n')}):
            self.assertDictEqual(network.arp(), {})
Calculate log normalization constant (aka log partition function)
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/network_test.py/NetworkTestCase.test_arp--crossover with--dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/distr/GaussGammaDistr.py/GaussGammaDistr.get_log_norm_const