'When a L{H2Connection} receives data, the timeout is reset.'

def test_timeoutResetByData(self):

    frameFactory = FrameFactory()
    initialData = ''
    (reactor, conn, transport) = self.initiateH2Connection(initialData, requestFactory=DummyHTTPHandler)
    for byte in iterbytes(frameFactory.clientConnectionPreface()):
        conn.dataReceived(byte)
        reactor.advance(99)
        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)
