Module ImportFrom alias ImportFrom alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias Expr Call NameLoad Str Assign AttributeStore NameLoad attr Dict ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str Dict Str Num Str Str NameLoad Assign NameStore Dict Str Str Num Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str Str NameLoad Assign NameStore Dict Str Str Num Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num keyword Str NameLoad decorator_list decorator_list Call NameLoad NameLoad NameLoad If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad keyword NameLoad
N/A __future__ absolute_import salt.states win_powercfg powercfg salttesting skipIf TestCase salttesting.helpers ensure_in_syspath salttesting.mock NO_MOCK NO_MOCK_REASON MagicMock patch N/A N/A ensure_in_syspath ../../ N/A N/A powercfg __salt__ N/A PowerCfgTestCase N/A TestCase N/A N/A 
        Validate the powercfg state
     test_set_monitor N/A N/A self N/A N/A N/A 
            Test to make sure we can set the monitor timeout value
         N/A ret N/A changes comment name result N/A monitor N/A ac 0 monitor True N/A monitor_val N/A ac dc 45 22 N/A N/A N/A patch dict N/A powercfg __salt__ N/A powercfg.get_monitor_timeout powercfg.set_monitor_timeout N/A MagicMock return_value monitor_val N/A MagicMock return_value True N/A N/A N/A N/A self assertEqual N/A N/A powercfg set_timeout monitor 0 ret N/A test_set_monitor_already_set N/A N/A self N/A N/A N/A 
            Test to make sure we can set the monitor timeout value
         N/A ret N/A changes comment name result N/A monitor ac is already set with the value 0. monitor True N/A monitor_val N/A ac dc 0 0 N/A N/A N/A patch dict N/A powercfg __salt__ N/A powercfg.get_monitor_timeout powercfg.set_monitor_timeout N/A MagicMock return_value monitor_val N/A MagicMock return_value True N/A N/A N/A N/A self assertEqual N/A N/A powercfg set_timeout monitor 0 ret N/A test_fail_invalid_setting N/A N/A self N/A N/A N/A 
            Test to make sure we can set the monitor timeout value
         N/A ret N/A changes comment name result N/A fakesetting is not a valid setting fakesetting False N/A N/A N/A self assertEqual N/A N/A powercfg set_timeout fakesetting 0 ret N/A test_fail_invalid_power N/A N/A self N/A N/A N/A 
            Test to make sure we can set the monitor timeout value
         N/A ret N/A changes comment name result N/A fakepower is not a power type monitor False N/A N/A N/A self assertEqual N/A N/A powercfg set_timeout monitor 0 power fakepower ret N/A N/A N/A skipIf NO_MOCK NO_MOCK_REASON N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests PowerCfgTestCase needs_daemon False