#NEWLINE# def test_receiveResponseHeaders( self ) : #NEWLINE# #INDENT# '\n        The headers included in a response delivered to L{HTTP11ClientProtocol}\n        are included on the L{Response} instance passed to the callback\n        returned by the C{request} method.\n        ' #NEWLINE# d = self . protocol . request ( Request ( b'GET' , b'/' , _boringHeaders , None ) ) #NEWLINE# def cbRequest( response ) : #NEWLINE# #INDENT# expected = Headers ( { #NEWLINE# #INDENT# b'x-foo' : [ b'bar' , b'baz' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . headers , expected ) #NEWLINE# #UNINDENT# d . addCallback ( self ) #NEWLINE# self . protocol . dataReceived ( b'HTTP/1.1 200 OK\r\nX-Foo: bar\r\nX-Foo: baz\r\n\r\n' ) #NEWLINE# return d