Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias Expr Call NameLoad Str ImportFrom alias Assign AttributeStore NameLoad attr Dict 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 Str Dict NameLoad Str Assign NameStore Call NameLoad keyword ListLoad Str Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call NameLoad keyword Dict Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Dict NameLoad Str Assign NameStore Call NameLoad keyword Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call NameLoad keyword ListLoad NameLoad Str Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Dict NameLoad Str Assign NameStore Call NameLoad keyword Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Dict NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad keyword Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Dict NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad keyword Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Dict NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr 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 N/A 
    :codeauthor: :email:`Rahul Handay <rahulha@saltstack.com>`
 __future__ absolute_import salttesting TestCase skipIf salttesting.helpers ensure_in_syspath salttesting.mock MagicMock patch NO_MOCK NO_MOCK_REASON N/A N/A ensure_in_syspath ../../ salt.states win_system N/A N/A win_system __salt__ N/A N/A N/A win_system __opts__ N/A WinSystemTestCase N/A TestCase N/A N/A 
        Validate the win_system state
     test_computer_desc N/A N/A self N/A N/A N/A 
            Test to manage the computer's description field
         N/A ret N/A name changes result comment salt N/A True N/A mock N/A MagicMock side_effect N/A salt stack stack N/A N/A N/A patch dict N/A win_system __salt__ N/A system.get_computer_desc mock N/A N/A N/A N/A ret update N/A comment Computer description already set to 'salt' N/A N/A N/A self assertDictEqual N/A N/A win_system computer_desc salt ret N/A N/A N/A patch dict N/A win_system __opts__ N/A test True N/A N/A N/A N/A ret update N/A result comment None Computer description will be changed to 'salt' N/A N/A N/A self assertDictEqual N/A N/A win_system computer_desc salt ret N/A N/A N/A patch dict N/A win_system __opts__ N/A test False N/A N/A mock N/A MagicMock return_value N/A Computer Description nfs N/A N/A N/A patch dict N/A win_system __salt__ N/A system.set_computer_desc mock N/A N/A N/A N/A ret update N/A result comment False Unable to set computer description to 'salt' N/A N/A N/A self assertDictEqual N/A N/A win_system computer_desc salt ret N/A test_computer_name N/A N/A self N/A N/A N/A 
            Test to manage the computer's name
         N/A ret N/A name changes result comment salt N/A True N/A mock N/A MagicMock return_value salt N/A N/A N/A patch dict N/A win_system __salt__ N/A system.get_computer_name mock N/A N/A mock N/A MagicMock side_effect N/A None SALT Stack stack N/A N/A N/A patch dict N/A win_system __salt__ N/A system.get_pending_computer_name mock N/A N/A N/A N/A ret update N/A comment Computer name already set to 'salt' N/A N/A N/A self assertDictEqual N/A N/A win_system computer_name salt ret N/A N/A N/A ret update N/A comment The current computer name is 'salt', but will be changed to 'salt' on the next reboot N/A N/A N/A self assertDictEqual N/A N/A win_system computer_name salt ret N/A N/A N/A patch dict N/A win_system __opts__ N/A test True N/A N/A N/A N/A ret update N/A result comment None Computer name will be changed to 'salt' N/A N/A N/A self assertDictEqual N/A N/A win_system computer_name salt ret N/A N/A N/A patch dict N/A win_system __opts__ N/A test False N/A N/A mock N/A MagicMock return_value False N/A N/A N/A patch dict N/A win_system __salt__ N/A system.set_computer_name mock N/A N/A N/A N/A ret update N/A comment result Unable to set computer name to 'salt' False N/A N/A N/A self assertDictEqual N/A N/A win_system computer_name salt ret N/A test_hostname N/A N/A self N/A N/A N/A ret N/A name changes result comment salt N/A True N/A mock N/A MagicMock return_value minion N/A N/A N/A patch dict N/A win_system __salt__ N/A system.get_hostname mock N/A N/A mock N/A MagicMock return_value True N/A N/A N/A patch dict N/A win_system __salt__ N/A system.set_hostname mock N/A N/A N/A N/A ret update N/A comment changes The current hostname is 'minion', but will be changed to 'salt' on the next reboot N/A hostname salt N/A N/A N/A self assertDictEqual N/A N/A win_system hostname salt ret N/A mock N/A MagicMock return_value False N/A N/A N/A patch dict N/A win_system __salt__ N/A system.set_hostname mock N/A N/A N/A N/A ret update N/A comment changes result Unable to set hostname N/A False N/A N/A N/A self assertDictEqual N/A N/A win_system hostname salt ret N/A mock N/A MagicMock return_value salt N/A N/A N/A patch dict N/A win_system __salt__ N/A system.get_hostname mock N/A N/A N/A N/A ret update N/A comment changes result Hostname is already set to 'salt' N/A True N/A N/A N/A self assertDictEqual N/A N/A win_system hostname salt ret N/A mock N/A MagicMock return_value salt N/A N/A N/A patch dict N/A win_system __salt__ N/A system.get_hostname mock N/A N/A N/A N/A ret update N/A name comment changes result SALT Hostname is already set to 'SALT' N/A True N/A N/A N/A self assertDictEqual N/A N/A win_system hostname SALT 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 WinSystemTestCase needs_daemon False