'If the request body producer indicates it is done by firing the
L{Deferred} returned from its C{startProducing} method but then goes on
to write too many bytes, the L{Deferred} returned by {Request.writeTo}
fires with a L{Failure} wrapping L{WrongBodyLength}.'

def test_sendRequestBodyFinishedEarlyThenTooManyBytes(self):

    def finisher(producer):
        producer.finished.callback(None)
    return self.assertFailure(self._sendRequestBodyFinishedEarlyThenTooManyBytes(finisher), WrongBodyLength)
