#NEWLINE# def test_abort_request( self ) : #NEWLINE# #INDENT# req_id = next_req_id ( ) #NEWLINE# role = FCGI_RESPONDER #NEWLINE# flags = 0 #NEWLINE# records = ( ( FCGI_BEGIN_REQUEST , pack_begin_request ( role , flags ) , req_id ) , ( FCGI_PARAMS , pack_env ( ) , req_id ) , ( FCGI_PARAMS , '' , req_id ) , 0.1 , ( FCGI_ABORT_REQUEST , '' , req_id ) ) #NEWLINE# handler = run_handler ( records , role = role , request_handler = copy_stdin_to_stdout ) #NEWLINE# rec = find_rec ( handler , FCGI_END_REQUEST , req_id ) #NEWLINE# assert ( rec and unpack_end_request ( rec . content ) ) #NEWLINE# for stream in ( FCGI_STDOUT , FCGI_STDERR ) : #NEWLINE# #INDENT# assert ( '' == read_stream ( handler , stream , req_id ) )