'L{SingleRangeStaticProducer.resumeProducing} writes the given amount
of content, starting at the given offset, from the resource to the
request.'

def test_resumeProducingProducesContent(self):

    request = DummyRequest([])
    content = 'abcdef'
    producer = static.SingleRangeStaticProducer(request, StringIO(content), 1, 3)
    producer.start()
    self.assertEqual(content[1:4], ''.join(request.written))
