def test_set_monitor_timeout(self):
        mock = MagicMock(return_value="")
        with patch.dict(powercfg.__salt__, {'cmd.run': mock}):
            powercfg.set_monitor_timeout(0, "dc")
            mock.assert_called_once_with('powercfg /x monitor-timeout-dc 0', python_shell=False)
Test to make sure we can set the monitor timeout value
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/win_powercfg_test.py/PowerCfgTestCase.test_set_monitor_timeout