%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core22/2010/usr/share/subiquity/subiquitycore/tests/__pycache__/
Upload File :
Create Path :
Current File : //snap/core22/2010/usr/share/subiquity/subiquitycore/tests/__pycache__/test_pubsub.cpython-310.pyc

o

K��^��@sDddlmZddlmZddlmZddlmZGdd�de�ZdS)���	MagicMock)�SubiTestCase)�
MessageHub)�run_coroc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�TestMessageHubcCst�|_dS)N)r�hub)�self�r
�7/usr/share/subiquity/subiquitycore/tests/test_pubsub.py�setUpszTestMessageHub.setUpcCsLt�}d}d}t|�D]	}|j�||�qt|j�|��|�||j�dS)N�i�)r�ranger�	subscriber�
abroadcast�assertEqual�
call_count)r	�cb�expected_calls�
channel_id�_r
r
r�test_multicallszTestMessageHub.test_multicallcCsTdd�td�D�}d}|D]	}|j�||�q
t|j�|��|D]}|��q!dS)NcSsg|]}t��qSr
r)�.0rr
r
r�
<listcomp>$sz7TestMessageHub.test_multisubscriber.<locals>.<listcomp>�i)	)rrrrr�assert_called_once_with)r	�cbsrrr
r
r�test_multisubscriber#s
�z#TestMessageHub.test_multisubscriberc	CsPt�}d}|j�||�t|jj|ddddgdd��|jddddgdd�dS)Nztest-message-arg�0��twor
r)�four)rrrrrr)r	rrr
r
r�test_message_arg,s
zTestMessageHub.test_message_argN)�__name__�
__module__�__qualname__rrrr"r
r
r
rrs
		rN)	�
unittest.mockr�subiquitycore.testsr�subiquitycore.pubsubr�subiquitycore.tests.utilrrr
r
r
r�<module>s


Zerion Mini Shell 1.0