コード例 #1
0
ファイル: server_tests.py プロジェクト: danmcginnis/ircdd
    def tearDown(self):
        self.transport.loseConnection()
        self.protocol.connectionLost(None)

        integration.cleanTables()

        self.conn.close()

        for topic in _topics(self.ctx["lookupd_http_address"]):
            for chan in _channels(topic, self.ctx["lookupd_http_address"]):
                _delete_channel(topic, chan, self.ctx["lookupd_http_address"])
            _delete_topic(topic, self.ctx["lookupd_http_address"])

        self.ctx["db"].conn.close()
        self.ctx = None
コード例 #2
0
ファイル: server_tests.py プロジェクト: danmcginnis/ircdd
    def tearDown(self):
        self.transport.loseConnection()
        self.protocol.connectionLost(None)

        integration.cleanTables()

        self.conn.close()

        for topic in _topics(self.ctx["lookupd_http_address"]):
            for chan in _channels(topic, self.ctx["lookupd_http_address"]):
                _delete_channel(topic, chan, self.ctx["lookupd_http_address"])
            _delete_topic(topic, self.ctx["lookupd_http_address"])

        self.ctx["db"].conn.close()
        self.ctx = None
コード例 #3
0
ファイル: messaging_tests.py プロジェクト: MHarrison72/ircdd
    def tearDown(self):
        for transport in self.transports:
            transport.loseConnection()
        self.transports = None

        for protocol in self.protocols:
            protocol.connectionLost(None)
        self.protocols = None

        self.factory = None
        self.config = None

        self.ctx.db.conn.close()
        self.ctx = None

        for topic in _topics(["127.0.0.1:4161"]):
            _delete_topic(topic, ["127.0.0.1:4161"])

        integration.cleanTables()

        self.conn.close()
コード例 #4
0
    def tearDown(self):
        for transport in self.transports:
            transport.loseConnection()
        self.transports = None

        for protocol in self.protocols:
            protocol.connectionLost(None)
        self.protocols = None

        self.factory = None
        self.config = None

        self.ctx.db.conn.close()
        self.ctx = None

        for topic in _topics(["127.0.0.1:4161"]):
            _delete_topic(topic, ["127.0.0.1:4161"])

        integration.cleanTables()

        self.conn.close()