'L{FileBodyProducer.resumeProducing} re-commences writing bytes from the
input file to the given L{IConsumer} after it was previously paused
with L{FileBodyProducer.pauseProducing}.'

def test_resumeProducing(self):

    expectedResult = 'hello,    world'
    readSize = 5
    output = BytesIO()
    consumer = FileConsumer(output)
    producer = FileBodyProducer(BytesIO(expectedResult), self.cooperator, readSize)
    producer.startProducing(consumer)
    self._scheduled.pop(0)()
    self.assertEqual(expectedResult[:readSize], output.getvalue())
    producer.pauseProducing()
    producer.resumeProducing()
    self._scheduled.pop(0)()
    self.assertEqual(expectedResult[:(readSize * 2)], output.getvalue())
