def test_finishNotification(self):
        """
        L{Request.finish} triggers all finish notification Deferreds.
        """
        request = http.Request(DummyChannel(), False)
        finished = request.notifyFinish()
        # Force the request to have a non-None content attribute.  This is
        # probably a bug in Request.
        request.gotLength(1)
        request.finish()
        return finished

        L{Request.finish} triggers all finish notification Deferreds.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py