def test_connection_fromProcess_is_set_after_connecting(self): c = thisProcess.getConnectionPossibilities()[0]() for i in range(100): time.sleep(0.001) if c.fromProcess().isProcess(): break self.assertEquals(c.fromProcess(), thisProcess)
def setUp(self): if not thisProcess.getConnectionPossibilities(): thisProcess.listenOnIPv4()