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(), {})
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(), {})
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)