'L{Request} objects can correctly ask isSecure on HTTP/2.'

def test_isSecureWorksProperly(self):

    connection = H2Connection()
    connection.requestFactory = DelayedHTTPHandlerProxy
    self.connectAndReceive(connection, self.getRequestHeaders, [])
    request = connection.streams[1]._request.original
    self.assertFalse(request.isSecure())
    connection.streams[1].abortConnection()
