'When a WindowUpdate frame is received for the whole connection but no
data is currently waiting, nothing exciting happens.'

def test_unnecessaryWindowUpdate(self):

    f = FrameFactory()
    b = StringTransport()
    a = H2Connection()
    a.requestFactory = DummyHTTPHandlerProxy
    frames = buildRequestFrames(self.postRequestHeaders, self.postRequestData, f)
    frames.insert(1, f.buildWindowUpdateFrame(streamID=0, increment=5))
    requestBytes = f.clientConnectionPreface()
    requestBytes += ''.join((f.serialize() for f in frames))
    a.makeConnection(b)
    for byte in iterbytes(requestBytes):
        a.dataReceived(byte)
    def validate(streamID):
        frames = framesFromBytes(b.value())
        self.assertTrue(('END_STREAM' in frames[(-1)].flags))
        actualResponseData = ''.join((f.data for f in frames if isinstance(f, hyperframe.frame.DataFrame)))
        self.assertEqual(self.postResponseData, actualResponseData)
    return a._streamCleanupCallbacks[1].addCallback(validate)
