#NEWLINE# def _headerTestSetup( self ) : #NEWLINE# #INDENT# header = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# protocol = HTTPParser ( ) #NEWLINE# protocol . headerReceived = header . __setitem__ #NEWLINE# protocol . makeConnection ( StringTransport ( ) ) #NEWLINE# protocol . dataReceived ( ( b'HTTP/1.1 200 OK' + self . sep ) ) #NEWLINE# return ( header , protocol )