Esempio 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': {}})
Esempio 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": {}})
Esempio n. 3
0
 def test_network(self):
     '''
     Test if it grab the current network settings
     '''
     self.assertDictEqual(ilo.network(), {'Network Settings': {}})
Esempio n. 4
0
 def test_network(self):
     '''
     Test if it grab the current network settings
     '''
     self.assertDictEqual(ilo.network(), {'Network Settings': {}})