'L{_ChunkedTransferDecoder.dataReceived} decodes chunked-encoded data
and passes the result to the specified callback.'

def test_decoding(self):

    L = []
    p = http._ChunkedTransferDecoder(L.append, None)
    p.dataReceived('3\r\nabc\r\n5\r\n12345\r\n')
    p.dataReceived('a\r\n0123456789\r\n')
    self.assertEqual(L, ['abc', '12345', '0123456789'])
