#NEWLINE# @ pytest . mark . parametrize ( 'end_stream' , ( True , False ) ) #NEWLINE# def test_single_informational_response( self , frame_factory , end_stream ) : #NEWLINE# #INDENT# '\n        When receiving a informational response, the appropriate event is\n        signaled.\n        ' #NEWLINE# c = h2 . connection . H2Connection ( client_side = True ) #NEWLINE# c . initiate_connection ( ) #NEWLINE# c . send_headers ( stream_id = 1 , headers = self . example_request_headers , end_stream = end_stream ) #NEWLINE# f = frame_factory . build_headers_frame ( headers = event . example_informational_headers , stream_id = 1 ) #NEWLINE# events = c . receive_data ( f . serialize ( ) ) #NEWLINE# assert ( len ( events ) == 1 ) #NEWLINE# event = events [ 0 ] #NEWLINE# assert isinstance ( event , h2 . events . InformationalResponseReceived ) #NEWLINE# assert ( event . headers == self . example_informational_headers ) #NEWLINE# assert ( event . stream_id == 1 )