'If L{ConnectionPool.close} is called without L{ConnectionPool.start}
having been called, the pool\'s startup event is cancelled.'

def test_unstartedClose(self):

    reactor = EventReactor(False)
    pool = ConnectionPool('twisted.test.test_adbapi', cp_reactor=reactor)
    self.assertEqual(reactor.triggers, [('after', 'startup', pool._start)])
    pool.close()
    self.assertFalse(reactor.triggers)
