'L{HTTPChannel} timeouts whenever data from a request body is not
delivered to it in time, even when it gets built from a L{HTTPFactory}.'

def test_requestBodyTimeoutFromFactory(self):

    clock = Clock()
    factory = http.HTTPFactory(timeout=100, reactor=clock)
    factory.startFactory()
    protocol = factory.buildProtocol(None)
    transport = StringTransport()
    protocol = parametrizeTimeoutMixin(protocol, clock)
    self.assertEqual(protocol.timeOut, 100)
    protocol.makeConnection(transport)
    protocol.dataReceived('POST    /    HTTP/1.0\r\nContent-Length:    2\r\n\r\n')
    clock.advance(99)
    self.assertFalse(transport.disconnecting)
    clock.advance(2)
    self.assertTrue(transport.disconnecting)
