'When a L{H2Connection} does not receive any data for more than the
time out interval, it closes the connection cleanly.'

def test_timeoutAfterInactivity(self):

    frameFactory = FrameFactory()
    initialData = frameFactory.clientConnectionPreface()
    (reactor, conn, transport) = self.initiateH2Connection(initialData, requestFactory=DummyHTTPHandler)
    preamble = transport.value()
    reactor.advance(99)
    self.assertEqual(preamble, transport.value())
    self.assertFalse(transport.disconnecting)
    reactor.advance(2)
    self.assertTimedOut(transport.value(), frameCount=2, errorCode=h2.errors.ErrorCodes.NO_ERROR, lastStreamID=0)
    self.assertTrue(transport.disconnecting)
