U
    [e                     @   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<td S )Ns)test)	r   r   r   Hellooutgoingincomingr   resultAssertionError)routercallfuture r   \/var/www/html/services/stratfitenv/lib/python3.8/site-packages/jeepney/tests/test_routing.pytest_message_reply   s
    
r   c               	   C   sp   t t} t }| |}| t|ddd tt	}|
  W 5 Q R X |jjdks\t|jjdksltd S )NZ	TestErroru)   )r   r   r   r
   r   r   r   pytestZraisesr   r   valuenamer   data)r   r   r   er   r   r   
test_error   s    
r   c                  C   sH   g } t t| jd}t }|| t| dks4t| d |ksDtd S )N)Zon_unhandled   r   )r   r   appendr   r
   r   lenr   )Z	unhandledr   msgr   r   r   test_unhandled   s    
r!   )asyncior   r   Zjeepney.routingr   Zjeepney.wrappersr   r   r   Zjeepney.bus_messagesr   r   r   r!   r   r   r   r   <module>   s   
