'When a WindowUpdate frame is received for a stream but no data is
currently waiting, that stream is not marked as unblocked and the
priority tree continues to assert that no stream can progress.'

def test_unnecessaryWindowUpdateForStream(self):

    f = FrameFactory()
    transport = StringTransport()
    conn = H2Connection()
    conn.requestFactory = DummyHTTPHandlerProxy
    frames = []
    frames.append(f.buildHeadersFrame(headers=self.postRequestHeaders, streamID=1))
    frames.append(f.buildWindowUpdateFrame(streamID=1, increment=5))
    data = f.clientConnectionPreface()
    data += ''.join((f.serialize() for f in frames))
    conn.makeConnection(transport)
    conn.dataReceived(data)
    self.assertAllStreamsBlocked(conn)
