Module Import alias Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Num If NameLoad body Assign NameStore Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list decorator_list
N/A N/A importlib N/A unittest N/A N/A N/A unittest.mock mock N/A N/A N/A ImportError N/A N/A mock FakeWindowsError N/A Exception N/A N/A WindowsError is available on Windows only. __init__ N/A N/A self errno N/A N/A N/A N/A self errno errno N/A N/A WindowsSecurityUtilsTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self _moves_mock N/A N/A mock MagicMock N/A N/A self _module_patcher N/A N/A N/A mock patch dict sys.modules N/A six.moves N/A self _moves_mock N/A N/A N/A N/A self _module_patcher start N/A N/A self _winreg_mock N/A N/A self _moves_mock winreg N/A N/A self security N/A N/A importlib import_module cloudbaseinit.utils.windows.security N/A N/A N/A self security WindowsError FakeWindowsError N/A N/A self _security_utils N/A N/A N/A self security WindowsSecurityUtils N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self _module_patcher stop N/A test_set_uac_remote_restrictions N/A N/A self N/A N/A N/A fake_value False N/A N/A N/A N/A self _security_utils set_uac_remote_restrictions enable fake_value N/A N/A N/A N/A N/A self _winreg_mock SetValueEx assert_called_once_with N/A N/A N/A N/A N/A self _winreg_mock CreateKey return_value __enter__ N/A N/A self _security_utils _LATFP_VALUE_NAME 0 N/A N/A self _winreg_mock REG_DWORD N/A fake_value N/A N/A N/A N/A N/A self _winreg_mock CreateKey assert_called_once_with N/A N/A self _winreg_mock HKEY_LOCAL_MACHINE N/A N/A self _security_utils _SYSTEM_POLICIES_KEY N/A _test_get_uac_remote_restrictions_win_error N/A N/A self ret_error N/A False N/A N/A fake_errno 2 N/A ret_error N/A N/A fake_errno 0 N/A N/A N/A N/A self _winreg_mock OpenKey side_effect N/A N/A N/A N/A self security WindowsError fake_errno N/A ret_error N/A N/A N/A N/A self assertRaises N/A N/A self security WindowsError N/A N/A self _security_utils get_uac_remote_restrictions N/A N/A response N/A N/A N/A self _security_utils get_uac_remote_restrictions N/A N/A N/A self assertTrue response N/A test_get_uac_remote_restrictions_win_error_ret_error N/A N/A self N/A N/A N/A N/A N/A self _test_get_uac_remote_restrictions_win_error ret_error True N/A test_get_uac_remote_restrictions_win_error N/A N/A self N/A N/A N/A N/A N/A self _test_get_uac_remote_restrictions_win_error ret_error False N/A test_get_uac_remote_restrictions_no_error N/A N/A self N/A N/A N/A key N/A N/A mock MagicMock N/A fake_key_value 0 N/A N/A N/A key __enter__ return_value fake_key_value N/A fake_reg_type N/A N/A mock sentinel fake_reg_type N/A N/A N/A N/A self _winreg_mock OpenKey return_value key N/A N/A N/A N/A self _winreg_mock QueryValueEx return_value N/A fake_key_value fake_reg_type N/A response N/A N/A N/A self _security_utils get_uac_remote_restrictions N/A N/A N/A N/A N/A self _winreg_mock QueryValueEx assert_called_once_with fake_key_value N/A N/A self _security_utils _LATFP_VALUE_NAME N/A N/A N/A N/A N/A self _winreg_mock OpenKey assert_called_once_with N/A N/A self _winreg_mock HKEY_LOCAL_MACHINE N/A N/A self _security_utils _SYSTEM_POLICIES_KEY N/A N/A N/A self assertTrue N/A bool response N/A N/A