def test_notSecure(self):
        """
        Calling L{http.Request.isSecure} when the channel is not backed with a
        secure transport will return L{False}.
        """
        b = DummyChannel.TCP()
        a = http.HTTPChannel()
        a.makeConnection(b)
        req = http.Request(a)
        self.assertFalse(req.isSecure())

        Calling L{http.Request.isSecure} when the channel is not backed with a
        secure transport will return L{False}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py