def test_finishCalledWhenDone(self):
    '\n        L{MultipleRangeStaticProducer.resumeProducing} calls finish() on the\n        request after it is done producing content.\n        '
    request = DummyRequest([])
    finishDeferred = request.notifyFinish()
    callbackList = []
    finishDeferred.addCallback(callbackList.append)
    producer = static.MultipleRangeStaticProducer(request, StringIO(b'abcdef'), [(b'', 1, 2)])
    producer.start()
    self.assertEqual([None], callbackList)
L{MultipleRangeStaticProducer.resumeProducing} calls finish() on the
request after it is done producing content.
def test_finishCalledWhenDone(self):
    '\n        L{MultipleRangeStaticProducer.resumeProducing} calls finish() on the\n        request after it is done producing content.\n        '
    request = DummyRequest([])
    finishDeferred = request.notifyFinish()
    callbackList = []
    finishDeferred.addCallback(callbackList.append)
    producer = static.MultipleRangeStaticProducer(request, StringIO(b'abcdef'), [(b, 1, 2)])
    producer.start()
    self.assertEqual([None], callbackList)