Exemplo n.º 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(), {})
Exemplo n.º 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(), {})
Exemplo n.º 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(), {})