Module Import alias Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr CompareIs NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str decorator_list decorator_list
N/A N/A os N/A unittest N/A N/A N/A unittest.mock mock N/A N/A N/A ImportError N/A N/A mock oslo_config cfg cloudbaseinit.plugins.common.userdataplugins heat N/A CONF N/A cfg CONF HeatUserDataHandlerTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self _heat N/A N/A heat HeatPlugin N/A test_check_heat_config_dir N/A N/A self mock_dirname mock_makedirs mock_exists N/A N/A N/A N/A mock_exists return_value False N/A fake_path N/A N/A mock sentinel fake_path N/A fake_dir N/A N/A mock sentinel fake_dir N/A N/A mock_dirname return_value fake_dir N/A N/A N/A N/A self _heat _check_dir file_name fake_path N/A N/A N/A mock_dirname assert_called_once_with fake_path N/A N/A N/A mock_exists assert_called_once_with fake_dir N/A N/A N/A mock_makedirs assert_called_once_with fake_dir N/A N/A N/A mock patch os.path.exists N/A N/A mock patch os.makedirs N/A N/A mock patch os.path.dirname _test_process N/A N/A self mock_write_file mock_check_dir mock_execute_user_data_script filename N/A N/A N/A mock_part N/A N/A mock MagicMock N/A N/A N/A mock_part get_filename return_value filename N/A response N/A N/A N/A self _heat process mock_part N/A path N/A N/A N/A os path join N/A CONF heat_config_dir filename N/A N/A N/A mock_check_dir assert_called_once_with path N/A N/A N/A N/A mock_part get_filename assert_called_with N/A N/A N/A mock_write_file assert_called_once_with path N/A N/A mock_part get_payload return_value N/A N/A filename N/A N/A self _heat _heat_user_data_filename N/A N/A N/A N/A mock_execute_user_data_script assert_called_with N/A N/A mock_part get_payload N/A N/A N/A self assertEqual N/A mock_execute_user_data_script return_value response N/A N/A N/A N/A self assertTrue N/A response None N/A N/A N/A mock patch cloudbaseinit.plugins.common.userdatautils.execute_user_data_script N/A N/A mock patch cloudbaseinit.plugins.common.userdataplugins.heat.HeatPlugin._check_dir N/A N/A mock patch cloudbaseinit.utils.encoding.write_file test_process N/A N/A self N/A N/A N/A N/A N/A self _test_process filename N/A N/A self _heat _heat_user_data_filename N/A test_process_content_other_data N/A N/A self N/A N/A N/A N/A N/A self _test_process filename other data N/A N/A