def test_connectionLost_unregistersFromConnectionCache(self):
        cache = conncache.ConnectionCache()

        class FakeNexus(object):
            conns = cache
            addr = object()
            svc = object()

        protocol = sigma.SigmaProtocol(FakeNexus())
        transport = DisconnectingTransport()
        q2qPeer = object()
        transport.getQ2QPeer = lambda: q2qPeer

        protocol.makeConnection(transport)
        d = cache.shutdown()
        transport.loseConnectionDeferred.callback(None)
        self.assertNoResult(d)
        protocol.connectionLost(Failure(ConnectionDone))
        self.successResultOf(d)
Create a new :class:`Reporter` object
dataset/ETHPy150Open twisted/vertex/vertex/test/test_sigma.py/TestSigmaConnectionCache.test_connectionLost_unregistersFromConnectionCache--crossover with--dataset/ETHPy150Open inconshreveable/sqltap/sqltap/sqltap.py/Reporter.__init__