'When a WindowUpdate frame is received for a stream that has been
aborted it is ignored.'

def test_windowUpdateAfterTerminate(self):

    f = FrameFactory()
    b = StringTransport()
    a = H2Connection()
    a.requestFactory = DummyHTTPHandlerProxy
    frames = buildRequestFrames(self.postRequestHeaders, self.postRequestData, f)
    requestBytes = f.clientConnectionPreface()
    requestBytes += ''.join((f.serialize() for f in frames))
    a.makeConnection(b)
    for byte in iterbytes(requestBytes):
        a.dataReceived(byte)
    a.streams[1].abortConnection()
    windowUpdateFrame = f.buildWindowUpdateFrame(streamID=1, increment=5)
    a.dataReceived(windowUpdateFrame.serialize())
    frames = framesFromBytes(b.value())
    self.assertTrue(isinstance(frames[(-1)], hyperframe.frame.RstStreamFrame))
