'If L{ConnectionPool.close} is called after it has been started, but
not by its shutdown trigger, the shutdown trigger is cancelled.'

def test_startedClose(self):

    reactor = EventReactor(True)
    pool = ConnectionPool('twisted.test.test_adbapi', cp_reactor=reactor)
    self.assertEqual(reactor.triggers, [('during', 'shutdown', pool.finalClose)])
    pool.close()
    self.assertFalse(reactor.triggers)
