o
    7!,YJ                     @   sR   d dl mZ d dlZd dlmZmZ d dlmZ ej	
ej	edZdd ZdS )    )StringION)MessageTypeHeaderFields)code_from_xmlzsecrets_introspect.xmlc                  C   s   t t} |  }W d    n1 sw   Y  t }t|dd|d}|dks)J i }t| | |d }|jdks=J | ddd	}|j	j
tju sOJ |j	jtj dksZJ d S )
Nz/org/freedesktop/secretszorg.freedesktop.secrets)pathZbus_nameZfh   Servicezorg.freedesktop.Secret.ServiceZfooZbar)serviceuser)opensample_filereadr   r   execgetvalueZ	interfaceZSearchItemsheaderZmessage_typer   Zmethod_callZfieldsr   Zdestination)fZxmlZsioZn_interfacesZ
binding_nsr   msg r   </usr/lib/python3/dist-packages/jeepney/tests/test_bindgen.pytest_bindgen	   s    

r   )ior   os.pathosZjeepney.low_levelr   r   Zjeepney.bindgenr   r   joindirname__file__r   r   r   r   r   r   <module>   s    