Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias alias Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad 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 NameLoad attr keyword Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad keyword TupleLoad Str Num keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr TupleLoad Str Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TupleLoad Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TupleLoad Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A socket N/A unittest SocketServer TCPServer N/A mock pants.java.nailgun_protocol ChunkType NailgunProtocol pants.pantsd.pailgun_server PailgunHandler PailgunServer N/A PATCH_OPTS N/A dict autospec True spec_set True TestPailgunServer N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self mock_handler_inst N/A N/A mock Mock N/A N/A self mock_runner_factory N/A N/A mock Mock side_effect N/A Exception this should never be called N/A N/A self mock_handler_class N/A N/A mock Mock return_value N/A self mock_handler_inst N/A N/A N/A N/A mock patch object PailgunServer server_bind N/A N/A N/A N/A N/A mock patch object PailgunServer server_activate N/A N/A N/A self server N/A PailgunServer server_address N/A 0.0.0.0 0 runner_factory N/A self mock_runner_factory handler_class N/A self mock_handler_class N/A test_server_bind N/A N/A self mock_tcpserver_bind N/A N/A N/A mock_sock N/A N/A mock Mock N/A N/A N/A mock_sock getsockname return_value N/A 0.0.0.0 31337 N/A N/A N/A self server socket mock_sock N/A N/A N/A N/A self server server_bind N/A N/A N/A self assertEquals N/A N/A self server server_port 31337 N/A N/A N/A self assertIs N/A mock_tcpserver_bind called True N/A N/A N/A N/A mock patch object TCPServer server_bind PATCH_OPTS test_process_request N/A N/A self mock_close_request N/A N/A N/A mock_request N/A N/A mock Mock N/A N/A N/A N/A self server process_request mock_request N/A 1.2.3.4 31338 N/A N/A N/A self assertIs N/A N/A N/A self mock_handler_inst handle_request called True N/A N/A N/A mock_close_request assert_called_once_with N/A self server mock_request N/A N/A N/A N/A mock patch object PailgunServer close_request PATCH_OPTS test_process_request_error N/A N/A self mock_shutdown_request N/A N/A N/A mock_request N/A N/A mock Mock N/A N/A N/A N/A self mock_handler_inst handle_request side_effect N/A AttributeError oops N/A N/A N/A N/A self server process_request mock_request N/A 1.2.3.4 31338 N/A N/A N/A self assertIs N/A N/A N/A self mock_handler_inst handle_request called True N/A N/A N/A self assertIs N/A N/A N/A self mock_handler_inst handle_error called True N/A N/A N/A mock_shutdown_request assert_called_once_with N/A self server mock_request N/A N/A N/A N/A mock patch object PailgunServer shutdown_request PATCH_OPTS N/A TestPailgunHandler N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A self client_sock N/A self server_sock N/A N/A socket socketpair N/A N/A self mock_socket N/A N/A mock Mock N/A N/A self mock_server N/A N/A mock create_autospec PailgunServer spec_set True N/A N/A self handler N/A PailgunHandler N/A self server_sock N/A N/A N/A N/A self client_sock getsockname N/A 2 N/A self mock_server N/A test_handle_error N/A N/A self N/A N/A N/A N/A N/A N/A self handler handle_error N/A N/A last_chunk_type last_payload N/A N/A list N/A N/A NailgunProtocol iter_chunks N/A self client_sock N/A -1 N/A N/A N/A self assertEquals last_chunk_type N/A ChunkType EXIT N/A N/A N/A self assertEquals N/A bytes last_payload 1 N/A test_handle_request N/A N/A self mock_run_pants N/A N/A N/A N/A N/A NailgunProtocol send_request N/A self client_sock /test ./pants help-advanced N/A N/A N/A N/A self handler handle_request N/A N/A N/A self assertIs N/A mock_run_pants called True N/A N/A N/A N/A mock patch object PailgunHandler _run_pants PATCH_OPTS N/A