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: //lib/python3/dist-packages/samba/tests/dcerpc/__pycache__/rpcecho.cpython-310.pyc
o

�/ao	�@sTdZddlmZddlmZmZddlmZmZGdd�de�Z	Gdd�de�Z
d	S)
zTests for samba.dceprc.rpcecho.�)�echo)�ndr_pack�
ndr_unpack)�RpcInterfaceTestCase�TestCasecs\eZdZ�fdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Z�ZS)�RpcEchoTestscs$tt|���t�d|���|_dS)N�ncalrpc:)�superr�setUpr�rpcecho�get_loadparm�conn��self��	__class__��</usr/lib/python3/dist-packages/samba/tests/dcerpc/rpcecho.pyr
szRpcEchoTests.setUpcCs0tjd|��|jd�|_|�d|j�d��dS)Nr)�basis_connection��)rrrr
�conn2�assertEqual�AddOnerrrr�test_two_contextsszRpcEchoTests.test_two_contextscCs|�d|jj�dS)N)z$60a15ec5-4de8-11d7-a637-005056a20182�)rr
�abstract_syntaxrrrr�test_abstract_syntax#s�z!RpcEchoTests.test_abstract_syntaxcCs|�d|j�d��dS)Nrr)rr
rrrrr�test_addone'�zRpcEchoTests.test_addonecCs |�gd�|j�gd���dS)N)rrr)rr
�EchoDatarrrr�
test_echodata*s zRpcEchoTests.test_echodatacCs|�d|j�d��dS)N�foobar)rr
�TestCallrrrr�	test_call-rzRpcEchoTests.test_callcCs<t��}d|_gd�|_|j�|�}|�ddg|j�dS)N�)rrrr%�r)r�Surrounding�x�surroundingr
�TestSurroundingr)r�surrounding_struct�yrrr�test_surrounding0s

zRpcEchoTests.test_surroundingcCs"|�d|j�dtd�d��dS)Nsrr%)rr
�request�chrrrrr�test_manual_request7s"z RpcEchoTests.test_manual_requestcCs|�d|jj�dS)N)rr
�server_namerrrr�test_server_name:szRpcEchoTests.test_server_name)
�__name__�
__module__�__qualname__r
rrrr!r$r-r0r2�
__classcell__rrrrrsrc@seZdZdd�Zdd�ZdS)�NdrEchoTestscCs"t��}d|_|�dt|��dS)N�*�*)r�info1�vrr�rr(rrr�test_info1_push@szNdrEchoTests.test_info1_pushcCsttjd�}|�|jd�dS)N�B�B)rrr:rr;r<rrr�test_info1_pullEszNdrEchoTests.test_info1_pullN)r3r4r5r=r@rrrrr7>sr7N)�__doc__�samba.dcerpcr�	samba.ndrrr�samba.testsrrrr7rrrr�<module>s%