#NEWLINE# @ pytest . mark . parametrize ( 'headers' , ( example_request_headers , bytes_example_request_headers ) ) #NEWLINE# @ pytest . mark . parametrize ( 'cookie_header' , unsecured_cookie_headers ) #NEWLINE# def test_long_cookie_headers_can_be_indexed( self , headers , cookie_header , frame_factory ) : #NEWLINE# #INDENT# '\n        Longer cookie headers can be indexed.\n        ' #NEWLINE# send_headers = ( headers + [ cookie_header ] ) #NEWLINE# expected_headers = ( headers + [ HeaderTuple ( cookie_header [ 0 ] . lower ( ) , cookie_header [ 1 ] ) ] ) #NEWLINE# c = h2 . connection . H2Connection ( ) #NEWLINE# c . initiate_connection ( ) #NEWLINE# c . clear_outbound_data_buffer ( ) #NEWLINE# c . send_headers ( 1 , send_headers ) #NEWLINE# f = frame_factory . build_headers_frame ( headers = frame_factory ) #NEWLINE# assert ( c . data_to_send ( ) == f . serialize ( ) )