'L{Request.stopWriting} calls its body producer\'s C{stopProducing}
method.'

def test_stopWriting(self):

    producer = StringProducer(3)
    request = Request('GET', '/', _boringHeaders, producer)
    request.writeTo(self.transport)
    self.assertFalse(producer.stopped)
    request.stopWriting()
    self.assertTrue(producer.stopped)
