'L{HTTPChannel} resets its timeout whenever data from a request body is
delivered to it.'

def test_requestBodyTimeout(self):

    clock = Clock()
    transport = StringTransport()
    protocol = http.HTTPChannel()
    protocol.timeOut = 100
    protocol.callLater = clock.callLater
    protocol.makeConnection(transport)
    protocol.dataReceived('POST    /    HTTP/1.0\r\nContent-Length:    2\r\n\r\n')
    clock.advance(99)
    self.assertFalse(transport.disconnecting)
    protocol.dataReceived('x')
    clock.advance(99)
    self.assertFalse(transport.disconnecting)
    protocol.dataReceived('x')
    self.assertEqual(len(protocol.requests), 1)
