Ejemplo n.º 1
0
 def test_get_config(self):
     '''
     Test if it get the status of all the firewall profiles
     '''
     mock_cmd = MagicMock(return_value='')
     with patch.dict(win_firewall.__salt__, {'cmd.run': mock_cmd}):
         self.assertDictEqual(win_firewall.get_config(), {})
Ejemplo n.º 2
0
 def test_get_config(self):
     """
     Test if it get the status of all the firewall profiles
     """
     mock_cmd = MagicMock(return_value="")
     with patch.dict(win_firewall.__salt__, {"cmd.run": mock_cmd}):
         self.assertDictEqual(win_firewall.get_config(), {})
Ejemplo n.º 3
0
 def test_get_config(self):
     '''
     Test if it get the status of all the firewall profiles
     '''
     mock_cmd = MagicMock(return_value='')
     with patch.dict(win_firewall.__salt__, {'cmd.run': mock_cmd}):
         self.assertDictEqual(win_firewall.get_config(), {})
         mock_cmd.assert_called_once_with(['netsh', 'advfirewall', 'show', 'allprofiles'], python_shell=False)