def _sendRequestBodyFinishedEarlyThenTooManyBytes(self, finisher):
        producer = StringProducer(3)
        request = Request(b'POST', b'/bar', _boringHeaders, producer)
        writeDeferred = request.writeTo(self.transport)

        producer.consumer.write(b'ab')
        finisher(producer)
        self.assertIdentical(self.transport.producer, None)
        self.transport.clear()
        self.assertRaises(ExcessWrite, producer.consumer.write, b'cd')
        self.assertEqual(self.transport.value(), b"")
        return writeDeferred
followup delete for superuser
dataset/ETHPy150Open twisted/twisted/twisted/web/test/test_newclient.py/RequestTests._sendRequestBodyFinishedEarlyThenTooManyBytes--crossover with--dataset/ETHPy150Open rossp/django-helpdesk/helpdesk/views/staff.py/followup_delete