'L{_ChunkedTransferDecoder.dataReceived} interprets a zero-length
chunk as the end of the chunked data stream and calls the completion
callback.'

def test_finish(self):

    finished = []
    p = http._ChunkedTransferDecoder(None, finished.append)
    p.dataReceived('0\r\n\r\n')
    self.assertEqual(finished, [''])
