Module Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore AttributeLoad Call Call NameLoad attr attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return If CompareIs NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list
N/A N/A unittest N/A N/A N/A unittest.mock mock N/A N/A N/A ImportError N/A N/A mock cloudbaseinit exception cloudbaseinit.metadata factory cloudbaseinit.tests testutils MetadataServiceFactoryTests N/A N/A unittest TestCase N/A _test_get_metadata_service N/A N/A self mock_load_class ret_value load_exception N/A N/A N/A mock MagicMock False N/A N/A N/A mock_load_class side_effect ret_value N/A load_exception N/A N/A N/A N/A N/A N/A mock_load_class load side_effect Exception N/A N/A N/A self assertRaises N/A exception CloudbaseInitException N/A N/A N/A N/A factory get_metadata_service N/A N/A N/A ret_value N/A exception CloudbaseInitException N/A N/A N/A N/A self assertRaises N/A exception CloudbaseInitException N/A factory get_metadata_service N/A N/A response N/A N/A factory get_metadata_service N/A N/A N/A self assertEqual N/A N/A mock_load_class response N/A N/A N/A mock patch cloudbaseinit.utils.classloader.ClassLoader.load_class test_get_metadata_service N/A N/A self N/A N/A N/A N/A N/A self _test_get_metadata_service N/A test_get_metadata_service_exception N/A N/A self N/A N/A N/A N/A N/A self _test_get_metadata_service ret_value N/A exception CloudbaseInitException N/A test_get_metadata_service_load_exception N/A N/A self N/A N/A N/A N/A N/A testutils LogSnatcher cloudbaseinit.metadata.factory N/A N/A N/A N/A self _test_get_metadata_service load_exception True N/A N/A