def tearDown(self): self.l2tp_dispatcher._unregister_local_address(self.local_addr) for fd in self.l2tp_dispatcher.socketMapping.keys(): trans_network = self.l2tp_dispatcher.socketMapping.pop(fd) # Close the socket trans_network.close() stop_test_redis()
def tearDown(self): stop_test_redis() self.pid.send_signal(signal.SIGINT) self.pid.wait() self.pid = None self.stop_mastersim() os.system('rm -rf /tmp/ProcessAgent_AGENTTYPE_*')
def tearDownClass(cls): stop_test_redis() if cls.rpdhostres.poller and cls.rpdhostres.mgrConnection: cls.rpdhostres.poller.unregister( cls.rpdhostres.mgrConnection.socket) cls.rpdhostres.poller.unregister( cls.rpdhostres.mgrConnection.monitor) cls.rpdhostres.mgrConnection.socket.disable_monitor() cls.rpdhostres.mgrConnection.monitor.close() cls.rpdhostres.mgrConnection.close()
def tearDownClass(cls): if cls.crashCtrlHandler and cls.crashCtrlHandler.is_upload_process_alive(): cls.crashCtrlHandler.stop_upload_process() if cls.halClient.pushSock: cls.halClient.pushSock.close() del cls.halClient if cls.tftp_pid: cls.tftp_pid.send_signal(signal.SIGINT) cls.tftp_pid.wait() stop_test_redis() subprocess.call(["killall", "python"]) pass
def tearDown(self): dhcpRecord = DhcpInfoRecord() dhcpRecord.deleteAll() stop_test_redis()
def tearDownClass(cls): stop_test_redis() for key in Mcast.McastDb.keys(): Mcast.McastDb[key].close()
def tearDown(self): # clear db records rec = IpNettophyRec() rec.delete_all() stop_test_redis()
def tearDownClass(cls): for conn in L2tpConnection.ConnectionDb.values(): conn.CloseConnection() stop_test_redis()
def tearDown(self): # clear db records rec = RpdEnetRec() rec.delete_all() stop_test_redis()
def tearDownClass(cls): stop_test_redis() cls.api.transport.socket.unbind(cls.api.transport.path) for key in Mcast.McastDb.keys(): if isinstance(Mcast.McastDb[key], Mcast): Mcast.McastDb[key].close()
def tearDown(self): self.process.cleanup() stop_test_redis()
def tearDownClass(cls): stop_test_redis() L2tpv3GlobalSettings.Dispatcher.request_unregister( {"unregType": "localaddress", "value": cls.conn_address}) pass
def tearDown(self): CCAPCoreOrchestrator.NO_PRINCIPAL_CORE_FOUND_TIMEOUT = 60 CCAPCore.ccap_core_db = {} ManagerProcess.SYSTEM_TIME_CONFIRM = "None" stop_test_redis()
def tearDownClass(cls): cls.conn.CloseConnection() for key in Mcast.McastDb.keys(): Mcast.McastDb.pop(key) stop_test_redis()
def tearDownClass(cls): if cls.hal_client.pushSock: cls.hal_client.pushSock.close() del cls.hal_client stop_test_redis()
def tearDownClass(cls): # clear db records sessRec = DepiMcastSessionRecord() sessRec.delete_all() stop_test_redis()
def tearDown(self): sessRecord = L2tpSessionRecord() sessRecord.deleteAll() stop_test_redis()
def tearDown(self): stop_test_redis()
def tearDownClass(cls): cls.conn.CloseConnection() cls.conn.transport.network.close() L2tpv3GlobalSettings.Dispatcher._unregister_local_address( cls.conn_address) stop_test_redis()