コード例 #1
0
ファイル: test_ilo.py プロジェクト: morinap/salt-1
 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': {}})
コード例 #2
0
ファイル: test_ilo.py プロジェクト: mamh-mixed/saltstack-salt
 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": {}})
コード例 #3
0
ファイル: test_ilo.py プロジェクト: cldeluna/salt
 def test_network(self):
     '''
     Test if it grab the current network settings
     '''
     self.assertDictEqual(ilo.network(), {'Network Settings': {}})
コード例 #4
0
ファイル: ilo_test.py プロジェクト: DaveQB/salt
 def test_network(self):
     '''
     Test if it grab the current network settings
     '''
     self.assertDictEqual(ilo.network(), {'Network Settings': {}})