'If a request uses the I{chunked} transfer encoding, the request body is
decoded accordingly before it is made available on the request.'

def test_chunkedEncoding(self):

    httpRequest = 'GET    /    HTTP/1.0\nContent-Type:    text/plain\nTransfer-Encoding:    chunked\n\n6\nHello,\n14\n    spam,eggs    spam    spam\n0\n\n'
    path = []
    method = []
    content = []
    decoder = []
    testcase = self
    class MyRequest(http.Request, ):
        def process(self):
            content.append(self.content.fileno())
            content.append(self.content.read())
            method.append(self.method)
            path.append(self.path)
            decoder.append(self.channel._transferDecoder)
            testcase.didRequest = True
            self.finish()
    self.runRequest(httpRequest, MyRequest)
    self.assertIsInstance(content[0], int)
    self.assertEqual(content[1], 'Hello,    spam,eggs    spam    spam')
    self.assertEqual(method, ['GET'])
    self.assertEqual(path, ['/'])
    self.assertEqual(decoder, [None])
