#NEWLINE# def test_connection_string( self ) : #NEWLINE# #INDENT# self . set_up ( ) #NEWLINE# data = [ ] #NEWLINE# send_event = threading . Event ( ) #NEWLINE# def socket_handler( listener ) : #NEWLINE# #INDENT# sock = listener . accept ( ) [ 0 ] #NEWLINE# first = sock . recv ( 65535 ) #NEWLINE# data . append ( first ) #NEWLINE# f = SettingsFrame ( 0 ) #NEWLINE# sock . send ( f . serialize ( ) ) #NEWLINE# send_event . set ( ) #NEWLINE# sock . close ( ) #NEWLINE# #UNINDENT# self . _start_server ( send_event ) #NEWLINE# conn = self . get_connection ( ) #NEWLINE# conn . connect ( ) #NEWLINE# send_event . wait ( 5 ) #NEWLINE# assert data [ 0 ] . startswith ( b'PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n' ) #NEWLINE# self . tear_down ( )