o
    	,Y                     @   s\   d dl mZ d dlZd dlmZ d dlmZmZmZ d dl	m
Z
 dd Zdd	 Zd
d ZdS )    )FutureN)Router)new_method_return	new_errorDBusErrorResponse)message_busc                  C   s@   t t} t }| |}| t|dd | dksJ d S )Ns)test)r   r   r   Hellooutgoingincomingr   result)routercallfuture r   </usr/lib/python3/dist-packages/jeepney/tests/test_routing.pytest_message_reply   s
   
r   c                  C   s   t t} t }| |}| t|ddd tt	}|
  W d    n1 s+w   Y  |jjdks8J |jjdks@J d S )N	TestErroru)   )r   r   r   r
   r   r   r   pytestraisesr   r   valuenamedata)r   r   r   er   r   r   
test_error   s   

r   c                  C   sH   g } t t| jd}t }|| t| dksJ | d |ks"J d S )N)on_unhandled   r   )r   r   appendr   r
   r   len)	unhandledr   msgr   r   r   test_unhandled   s   
r$   )asyncior   r   jeepney.routingr   jeepney.wrappersr   r   r   jeepney.bus_messagesr   r   r   r$   r   r   r   r   <module>   s    
