'L{_ChunkedTransferDecoder.noMoreData} can be called from the finished
callback without raising an exception.'

def test_reentrantFinishedNoMoreData(self):

    errors = []
    successes = []
    def finished(extra):
        try:
            parser.noMoreData()
        except:
            errors.append(Failure())
        else:
            successes.append(True)
    parser = http._ChunkedTransferDecoder(None, finished)
    parser.dataReceived('0\r\n\r\n')
    self.assertEqual(errors, [])
    self.assertEqual(successes, [True])
