'L{NoRangeStaticProducer.start} writes at most
C{abstract.FileDescriptor.bufferSize} bytes of content from the
resource to the request at once.'

def test_resumeProducingBuffersOutput(self):

    request = DummyRequest([])
    bufferSize = abstract.FileDescriptor.bufferSize
    content = ('a' * ((2 * bufferSize) + 1))
    producer = static.NoRangeStaticProducer(request, StringIO(content))
    producer.start()
    expected = [content[0:bufferSize], content[bufferSize:(2 * bufferSize)], content[(2 * bufferSize):]]
    self.assertEqual(expected, request.written)
