def test_arp(self): ''' Test for return the arp table from the minion ''' with patch.dict(network.__salt__, {'cmd.run': MagicMock(return_value='A,B,C,D\nE,F,G,H\n')}): self.assertDictEqual(network.arp(), {})
def test_arp(self): ''' Test for return the arp table from the minion ''' with patch.dict( network.__salt__, {'cmd.run': MagicMock(return_value='A,B,C,D\nE,F,G,H\n')}): self.assertDictEqual(network.arp(), {})
def test_arp(self): """ Test for return the arp table from the minion """ with patch.dict( network.__salt__, {"cmd.run": MagicMock(return_value="A,B,C,D\nE,F,G,H\n")} ), patch("salt.utils.path.which", MagicMock(return_value="")): self.assertDictEqual(network.arp(), {})