def test_get_communication( self, mr_async_communication: PosixThreadCommunication): try: _communication = mr_async_communication.get_condition() except ValueError as e: assert "Async Event Loop object cannot be empty" in str( e ), "The exception error should be 'Async Event Loop object cannot be empty'." _event_loop = new_event_loop() _communication = mr_async_communication.get_condition(loop=_event_loop) assert isinstance( _communication, async_Condition ) is True, "This type of instance should be 'asyncio.Condition'."
def test_get_communication(self, mr_communication: PosixThreadCommunication): _communication = mr_communication.get_condition() assert isinstance( _communication, Condition ) is True, "This type of instance should be 'threading.Condition'."
def test_get_communication(self, mr_communication: PosixThreadCommunication): _communication = mr_communication.get_condition() assert isinstance( _communication, Condition ) is True, "This type of instance should be 'multiprocessing.synchronize.Condition'."