#NEWLINE# @ pytest . mark . parametrize ( 'headers' , ( example_request_headers , bytes_example_request_headers , extended_request_headers , bytes_extended_request_headers ) ) #NEWLINE# def test_sending_header_tuples( self , headers , frame_factory ) : #NEWLINE# #INDENT# '\n        Providing HeaderTuple and HeaderTuple subclasses preserves the metadata\n        about indexing.\n        ' #NEWLINE# c = h2 . connection . H2Connection ( ) #NEWLINE# c . initiate_connection ( ) #NEWLINE# c . clear_outbound_data_buffer ( ) #NEWLINE# c . send_headers ( 1 , self ) #NEWLINE# f = frame_factory . build_headers_frame ( headers = headers ) #NEWLINE# assert ( c . data_to_send ( ) == f . serialize ( ) )