HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/jeepney/tests/__pycache__/test_bus_messages.cpython-310.pyc
o

���`��@sfddlmZmZmZddlmZmZeddd�Ze�d�Z	dd�Z
d	d
�Zdd�Zd
d�Z
dd�ZdS)�)�DBusAddress�
new_signal�new_method_call)�	MatchRule�message_busz/org/freedesktop/portal/desktopzorg.freedesktop.portal.Desktop)�object_path�bus_name�org.freedesktop.portal.RequestcCsRtddd�}|�ttd��sJ�|�ttd��rJ�|�tt�d�d��r'J�dS)N�signalr	)�type�	interface�Response�Booz"org.freedesktop.portal.FileChooser)r�matchesr�portal_req_ifacer�portal�with_interface��rule�r�A/usr/lib/python3/dist-packages/jeepney/tests/test_bus_messages.py�test_match_rule_simples�
�rcCs8tdd��ttd��s
J�tdd��ttd��rJ�dS)Nz/org/freedesktop/portal)�path_namespacer
z/org/freedesktop/por)rrrrrrrr�test_match_rule_path_namespaces
�
�rcCsbtdd�}|�dd�|�ttdddd��sJ�|�ttddd	d��r%J�|�ttd��r/J�dS)
N�method_call�rr�foor�s)r��	signature�body)�foobar�r�add_arg_conditionrrrrrrr�test_match_rule_arg%s
��r$cCs�tdd�}|jdddd�|�ttddd	d
��sJ�|�ttdddd
��s'J�|�ttdddd
��s4J�|�ttddd
d
��rAJ�|�ttdddd
��rNJ�|�ttdddd
��r[J�dS)Nrrr�/aa/bb/�path��kindrr)r%r)z	/aa/bb/cc)z/aa/)z/aa)z/aa/bb�u)�r"rrrr�test_match_rule_arg_path5s(
������r+cCs~tdd�}|jdddd�|�ttddd��sJ�|�ttddd	��s%J�|�ttddd
��r1J�|�ttddd��r=J�dS)
N�NameOwnerChanged)�memberr�com.example.backend1�	namespacer'r)r.)zcom.example.backend1.foo.bar)zcom.example.backend12r))�)rr#rrrrrrr�test_match_rule_arg_namespaceWs

�
�
��r1N)�jeepneyrrr�jeepney.bus_messagesrrrrrrrr$r+r1rrrr�<module>s�
"