Module Import alias Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias 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 Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr 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 WS2_32UtilsTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self _ctypes_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 ctypes N/A self _ctypes_mock N/A N/A N/A N/A self _module_patcher start N/A N/A self ws2_32 N/A N/A importlib import_module cloudbaseinit.utils.windows.ws2_32 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_init_wsa N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object N/A self ws2_32 WSADATA mock_WSADATA N/A N/A N/A N/A N/A self ws2_32 init_wsa N/A N/A N/A mock_WSADATA assert_called_once_with N/A N/A N/A N/A N/A N/A N/A self _ctypes_mock windll Ws2_32 WSAStartup assert_called_once_with N/A N/A self ws2_32 VERSION_2_2 N/A N/A N/A self _ctypes_mock byref return_value N/A N/A N/A N/A N/A self _ctypes_mock byref assert_called_once_with N/A mock_WSADATA return_value N/A N/A