Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr ListLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr ListLoad NameLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore ListLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr decorator_list 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 decorator_list
N/A N/A socket N/A mock nova exception nova.tests.unit.virt.hyperv test_base nova.virt.hyperv serialproxy SerialProxyTestCase N/A N/A test_base HyperVBaseTestCase N/A setUp N/A N/A self mock_socket N/A N/A N/A N/A N/A N/A super SerialProxyTestCase self setUp N/A N/A self _mock_socket mock_socket N/A N/A self _mock_input_queue N/A N/A mock Mock N/A N/A self _mock_output_queue N/A N/A mock Mock N/A N/A self _mock_client_connected N/A N/A mock Mock N/A threading_patcher N/A N/A N/A mock patch object serialproxy threading N/A N/A N/A threading_patcher start N/A N/A N/A self addCleanup N/A threading_patcher stop N/A N/A self _proxy N/A N/A serialproxy SerialProxy N/A N/A mock sentinel instance_nane N/A N/A mock sentinel host N/A N/A mock sentinel port N/A self _mock_input_queue N/A self _mock_output_queue N/A self _mock_client_connected N/A N/A N/A N/A mock patch object socket socket test_setup_socket_exception N/A N/A self mock_socket N/A N/A N/A fake_socket N/A mock_socket return_value N/A N/A N/A fake_socket listen side_effect N/A socket error N/A N/A N/A self assertRaises N/A exception NovaException N/A N/A self _proxy _setup_socket N/A N/A N/A N/A fake_socket setsockopt assert_called_once_with N/A socket SOL_SOCKET N/A socket SO_REUSEADDR 1 N/A N/A N/A N/A fake_socket bind assert_called_once_with N/A N/A N/A mock sentinel host N/A N/A mock sentinel port N/A N/A N/A N/A mock patch object socket socket test_stop_serial_proxy N/A N/A self N/A N/A N/A N/A N/A self _proxy _conn N/A N/A mock Mock N/A N/A N/A self _proxy _sock N/A N/A mock Mock N/A N/A N/A N/A self _proxy stop N/A N/A N/A N/A N/A N/A self _proxy _stopped set assert_called_once_with N/A N/A N/A N/A N/A N/A self _proxy _client_connected clear assert_called_once_with N/A N/A N/A N/A N/A N/A self _proxy _conn shutdown assert_called_once_with N/A socket SHUT_RDWR N/A N/A N/A N/A N/A N/A self _proxy _conn close assert_called_once_with N/A N/A N/A N/A N/A N/A self _proxy _sock close assert_called_once_with N/A test_run N/A N/A self mock_setup_socket mock_accept_con N/A N/A N/A N/A N/A self _proxy _stopped N/A N/A mock MagicMock N/A N/A N/A N/A N/A self _proxy _stopped isSet side_effect N/A False True N/A N/A N/A N/A self _proxy run N/A N/A N/A mock_setup_socket assert_called_once_with N/A N/A N/A mock_accept_con assert_called_once_with N/A N/A N/A N/A mock patch object N/A serialproxy SerialProxy _accept_conn N/A N/A N/A mock patch object N/A serialproxy SerialProxy _setup_socket test_accept_connection N/A N/A self N/A N/A N/A mock_conn N/A N/A mock Mock N/A N/A N/A self _proxy _sock N/A N/A mock Mock N/A N/A N/A N/A N/A self _proxy _sock accept return_value N/A mock_conn N/A N/A N/A mock sentinel client_addr N/A N/A mock sentinel client_port N/A N/A N/A N/A self _proxy _accept_conn N/A N/A N/A N/A N/A N/A self _proxy _client_connected set assert_called_once_with N/A N/A N/A N/A mock_conn close assert_called_once_with N/A N/A N/A self assertIsNone N/A N/A self _proxy _conn N/A thread N/A N/A serialproxy threading Thread N/A job N/A N/A N/A self _proxy _get_data N/A N/A self _proxy _send_data N/A N/A N/A N/A thread assert_any_call target job N/A test_get_data N/A N/A self N/A N/A N/A N/A N/A N/A self _mock_client_connected isSet return_value True N/A N/A N/A self _proxy _conn N/A N/A mock Mock N/A N/A N/A N/A N/A self _proxy _conn recv side_effect N/A N/A N/A mock sentinel data None N/A N/A N/A N/A self _proxy _get_data N/A N/A N/A N/A N/A self _mock_client_connected clear assert_called_once_with N/A N/A N/A N/A N/A self _mock_input_queue put assert_called_once_with N/A N/A mock sentinel data N/A _test_send_data N/A N/A self exception N/A None N/A N/A N/A N/A N/A self _mock_client_connected isSet side_effect N/A True False N/A N/A N/A N/A self _mock_output_queue get_burst return_value N/A N/A mock sentinel data N/A N/A N/A self _proxy _conn N/A N/A mock Mock N/A N/A N/A N/A N/A self _proxy _conn sendall side_effect exception N/A N/A N/A N/A self _proxy _send_data N/A N/A N/A N/A N/A N/A self _proxy _conn sendall assert_called_once_with N/A N/A mock sentinel data N/A exception N/A N/A N/A N/A N/A N/A N/A self _proxy _client_connected clear assert_called_once_with N/A test_send_data N/A N/A self N/A N/A N/A N/A N/A self _test_send_data N/A test_send_data_exception N/A N/A self N/A N/A N/A N/A N/A self _test_send_data exception N/A socket error N/A N/A