'L{SingleRangeStaticProducer.resumeProducing} calls finish() on the
request after it is done producing content.'

def test_finishCalledWhenDone(self):

    request = DummyRequest([])
    finishDeferred = request.notifyFinish()
    callbackList = []
    finishDeferred.addCallback(callbackList.append)
    producer = static.SingleRangeStaticProducer(request, StringIO('abcdef'), 1, 1)
    producer.start()
    self.assertEqual([None], callbackList)
