def test_http11(self):
        """
        If the transport reports that HTTP/1.1 is negotiated, that's what's
        negotiated.
        """
        b = StringTransport()
        b.negotiatedProtocol = b'http/1.1'
        negotiatedProtocol = self._negotiatedProtocolForTransportInstance(b)
        self.assertEqual(negotiatedProtocol, b'http/1.1')

        If the transport reports that HTTP/1.1 is negotiated, that's what's
        negotiated.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py