'Headers received by L{HTTPChannel} in a request are made available to
the L{Request}.'

def test_headers(self):

    processed = []
    class MyRequest(http.Request, ):
        def process(self):
            processed.append(self)
            self.finish()
    requestLines = ['GET    /    HTTP/1.0', 'Foo:    bar', 'baz:    Quux', 'baz:    quux', '', '']
    self.runRequest('\n'.join(requestLines), MyRequest, 0)
    [request] = processed
    self.assertEqual(request.requestHeaders.getRawHeaders('foo'), ['bar'])
    self.assertEqual(request.requestHeaders.getRawHeaders('bAz'), ['Quux', 'quux'])
