Exemple #1
0
 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(), {})
Exemple #2
0
 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(), {})
Exemple #3
0
 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(), {})