'If a timed out transport doesn\'t close after 15 seconds, the
L{HTTPChannel} will forcibly close it.'

def test_transportForciblyClosed(self):

    clock = Clock()
    transport = StringTransport()
    factory = http.HTTPFactory()
    protocol = factory.buildProtocol(None)
    protocol = parametrizeTimeoutMixin(protocol, clock)
    protocol.makeConnection(transport)
    protocol.dataReceived('POST    /    HTTP/1.0\r\nContent-Length:    2\r\n\r\n')
    self.assertFalse(transport.disconnecting)
    self.assertFalse(transport.disconnected)
    clock.advance(60)
    self.assertTrue(transport.disconnecting)
    self.assertFalse(transport.disconnected)
    clock.advance(14)
    self.assertTrue(transport.disconnecting)
    self.assertFalse(transport.disconnected)
    clock.advance(1)
    self.assertTrue(transport.disconnecting)
    self.assertTrue(transport.disconnected)
