def test_notSecureAfterFinish(self):
        """
        After a request is finished, calling L{http.Request.isSecure} will
        always return L{False}.
        """
        b = DummyChannel.SSL()
        a = http.HTTPChannel()
        a.makeConnection(b)
        req = http.Request(a)
        a.requests.append(req)

        req.setResponseCode(200)
        req.finish()
        self.assertFalse(req.isSecure())

        After a request is finished, calling L{http.Request.isSecure} will
        always return L{False}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py