'L{_ChunkedTransferDecoder.dataReceived} decodes chunks broken up and
delivered in multiple calls.'

def test_short(self):

    L = []
    finished = []
    p = http._ChunkedTransferDecoder(L.append, finished.append)
    for s in iterbytes('3\r\nabc\r\n5\r\n12345\r\n0\r\n\r\n'):
        p.dataReceived(s)
    self.assertEqual(L, ['a', 'b', 'c', '1', '2', '3', '4', '5'])
    self.assertEqual(finished, [''])
