#NEWLINE# def test_continuation_frame_basic_push_promise( self , frame_factory ) : #NEWLINE# #INDENT# '\n        Test that we correctly decode a header block split across continuation\n        frames when that header block is initiated with a PUSH_PROMISE.\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 ) #NEWLINE# frames = self . _build_continuation_sequence ( headers = self . example_request_headers , block_size = 5 , frame_factory = frame_factory ) #NEWLINE# data = b'' . join ( ( f . serialize ( ) for f in frames ) ) #NEWLINE# events = c . receive_data ( data ) #NEWLINE# assert ( len ( events ) == 1 ) #NEWLINE# event = events [ 0 ] #NEWLINE# assert isinstance ( event , h2 . events . PushedStreamReceived ) #NEWLINE# assert ( f . headers == self . example_request_headers ) #NEWLINE# assert ( event . parent_stream_id == 1 ) #NEWLINE# assert ( event . pushed_stream_id == 2 )