Exemplo n.º 1
0
 def test_network(self):
     '''
     Test if it grab the current network settings
     '''
     with patch('salt.modules.ilo.__execute_cmd',
                MagicMock(return_value={'Network Settings': {}})):
         self.assertDictEqual(ilo.network(), {'Network Settings': {}})
Exemplo n.º 2
0
 def test_network(self):
     """
     Test if it grab the current network settings
     """
     with patch(
             "salt.modules.ilo.__execute_cmd",
             MagicMock(return_value={"Network Settings": {}}),
     ):
         self.assertDictEqual(ilo.network(), {"Network Settings": {}})
Exemplo n.º 3
0
 def test_network(self):
     '''
     Test if it grab the current network settings
     '''
     self.assertDictEqual(ilo.network(), {'Network Settings': {}})
Exemplo n.º 4
0
 def test_network(self):
     '''
     Test if it grab the current network settings
     '''
     self.assertDictEqual(ilo.network(), {'Network Settings': {}})