'L{_IdentityTransferDecoder.noMoreData} calls the finish callback and
raises L{PotentialDataLoss} if it is called and the content length is
unknown.'

def test_unknownContentLengthConnectionLose(self):

    body = []
    finished = []
    decoder = _IdentityTransferDecoder(None, body.append, finished.append)
    self.assertRaises(PotentialDataLoss, decoder.noMoreData)
    self.assertEqual(body, [])
    self.assertEqual(finished, [''])
    self._verifyCallbacksUnreferenced(decoder)
