def test_resumeProducingBuffersOutput(self):
    '\n        L{NoRangeStaticProducer.start} writes at most\n        C{abstract.FileDescriptor.bufferSize} bytes of content from the\n        resource to the request at once.\n        '
    request = DummyRequest([])
    bufferSize = abstract.FileDescriptor.bufferSize
    content = (b'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)
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):
    '\n        L{NoRangeStaticProducer.start} writes at most\n        C{abstract.FileDescriptor.bufferSize} bytes of content from the\n        resource to the request at once.\n        '
    request = DummyRequest([])
    bufferSize = abstract.FileDescriptor.bufferSize
    content = (b'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)