def _stop(): p.start() time.sleep(0.1) p.terminate() OverlayInterface.stop_service() OverlayInterface.loop.call_soon_threadsafe( OverlayInterface.loop.stop)
def _stop(): self.assertTrue(hasattr(OverlayInterface, 'dht')) OverlayInterface.stop_service() self.assertTrue(OverlayInterface.event_sock.closed) self.assertIsInstance(OverlayInterface.cmd_sock, zmq.Socket) self.assertIsInstance(OverlayInterface.event_sock, zmq.Socket) OverlayInterface.loop.call_soon_threadsafe( OverlayInterface.loop.stop)