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__/integer.cpython-310.pyc
o

�/a��@s<dZddlmZmZmZmZddlZGdd�dejj	�Z
dS)zDTests for integer handling in PIDL generated bindings samba.dcerpc.*�)�	server_id�misc�srvsvc�samrNc@s$eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd1d2�Zd3d4�Zd5d6�Zd7d8�Zd9d:�Zd;d<�Z d=d>�Z!d?d@�Z"dAdB�Z#dCdD�Z$dEdF�Z%dGS)H�IntegerTestscCs"t��}tj|_|�|jd�dS�Nl��)r�NONCLUSTER_VNN�	unique_id�assertEqual��self�s�r�</usr/lib/python3/dist-packages/samba/tests/dcerpc/integer.py�test_uint32_into_hyper�z#IntegerTests.test_uint32_into_hypercCs t��}d|_|�|jd�dS)N�)rr	r
rrrr�test_int_into_hyper�z IntegerTests.test_int_into_hyperc�$t����fdd�}|�t|�dS)Nc�
d�_dS�N���)r	r�r
rr�assign'�
z9IntegerTests.test_negative_int_into_hyper.<locals>.assign�r�assertRaises�
OverflowError�rrrrr�test_negative_int_into_hyper$�z)IntegerTests.test_negative_int_into_hypercr)Nc�tj�_dS�N)r� SERVERID_UNIQUE_ID_NOT_TO_VERIFY�vnnrrrrr.�z3IntegerTests.test_hyper_into_uint32.<locals>.assignrrrrr�test_hyper_into_uint32+r!z#IntegerTests.test_hyper_into_uint32c�$t����fdd�}|�t|�dS)Ncr"r#)rr$�timezonerrrrr5r&z2IntegerTests.test_hyper_into_int32.<locals>.assign�r�NetRemoteTODInforrrrrr�test_hyper_into_int322r!z"IntegerTests.test_hyper_into_int32cC� t��}d|_|�|jd�dS�N��rr+r)r
rrrr�test_int_into_int329rz IntegerTests.test_int_into_int32cr()Ncr"r#)rrr)rrrrrAr&z3IntegerTests.test_uint32_into_int32.<locals>.assignr*rrrr�test_uint32_into_int32>r!z#IntegerTests.test_uint32_into_int32cCr-r.r0rrrr�test_long_into_int32Esz!IntegerTests.test_long_into_int32cr()Ncr)Nl�r)rrrrrSrz<IntegerTests.test_larger_long_int_into_int32.<locals>.assignr*rrrr�test_larger_long_int_into_int32Pr!z,IntegerTests.test_larger_long_int_into_int32cCr-)Ni���r0rrrr�test_larger_int_into_int32Wrz'IntegerTests.test_larger_int_into_int32cr()Ncr)Ng@r4rrrrr_rz2IntegerTests.test_float_into_int32.<locals>.assign�rr+r�	TypeErrorrrrr�test_float_into_int32\r!z"IntegerTests.test_float_into_int32cr()Ncr)Ng@r4rrrrrfrz6IntegerTests.test_int_float_into_int32.<locals>.assignr7rrrr�test_int_float_into_int32cr!z&IntegerTests.test_int_float_into_int32cCr-)Ni�r0rrrr�test_negative_int_into_int32jrz)IntegerTests.test_negative_int_into_int32cr)Ncrr)r%rrrrrrrz6IntegerTests.test_negative_into_uint32.<locals>.assignrrrrr�test_negative_into_uint32or!z&IntegerTests.test_negative_into_uint32cr()Ncr"r#)rr$�time_midr��grrryr&z3IntegerTests.test_hyper_into_uint16.<locals>.assign�r�GUIDrrrrr>r�test_hyper_into_uint16vr!z#IntegerTests.test_hyper_into_uint16cr()Ncr)Ni@
�r=rr>rrr�rz1IntegerTests.test_int_into_uint16.<locals>.assignr@rrr>r�test_int_into_uint16}r!z!IntegerTests.test_int_into_uint16cr()Ncr)N���rCrr>rrr�rz:IntegerTests.test_negative_int_into_uint16.<locals>.assignr@rrr>r�test_negative_int_into_uint16�r!z*IntegerTests.test_negative_int_into_uint16cC�$t��}tj|_|�|jtj�dSr#)rrA�SEC_CHAN_DOMAINr=r
�rr?rrr�test_enum_into_uint16��z"IntegerTests.test_enum_into_uint16cCrGr#)rrA�SV_TYPE_WFWr=r
rIrrr�test_bitmap_into_uint16�rKz$IntegerTests.test_bitmap_into_uint16cr()Ncr"r#)r�SV_TYPE_LOCAL_LIST_ONLYr=rr>rrr�r&z=IntegerTests.test_overflow_bitmap_into_uint16.<locals>.assignr@rrr>r� test_overflow_bitmap_into_uint16�r!z-IntegerTests.test_overflow_bitmap_into_uint16cr()Ncr"r#)r�SV_TYPE_DOMAIN_ENUMr=rr>rrr�r&z?IntegerTests.test_overflow_bitmap_into_uint16_2.<locals>.assignr@rrr>r�"test_overflow_bitmap_into_uint16_2�r!z/IntegerTests.test_overflow_bitmap_into_uint16_2cr()Ncr"r#)rr$�max_password_agerrrrr�r&z2IntegerTests.test_hyper_into_int64.<locals>.assign)r�DomInfo1rrrrrr�test_hyper_into_int64�r!z"IntegerTests.test_hyper_into_int64cCr-r.�rrSrRr
rrrr�test_int_into_int64�rz IntegerTests.test_int_into_int64cCr-)N���rUrrrr�test_negative_int_into_int64�rz)IntegerTests.test_negative_int_into_int64cCs"t��}tj|_|�|jd�dSr)rrSrrrRr
rrrr�test_larger_int_into_int64�rz'IntegerTests.test_larger_int_into_int64cCr-)Nl����rUrrrr�#test_larger_negative_int_into_int64�rz0IntegerTests.test_larger_negative_int_into_int64cC�(t��}gd�|_|�|jdd�dS�N)r/rr/r��rr/�rrA�noder
rIrrr�test_int_list_over_list��
z$IntegerTests.test_int_list_over_listcCr[r\r_rIrrr�"test_long_int_list_over_uint8_list�rbz/IntegerTests.test_long_int_list_over_uint8_listcr()Nc�gd��_dS)N)rrr/rr]r^�r`rr>rrr��z?IntegerTests.test_negative_list_over_uint8_list.<locals>.assignr@rrr>r�"test_negative_list_over_uint8_list�r!z/IntegerTests.test_negative_list_over_uint8_listcr()Ncrd)N)�rr/rr]r^rerr>rrr�rfz?IntegerTests.test_overflow_list_over_uint8_list.<locals>.assignr@rrr>r�"test_overflow_list_over_uint8_list�r!z/IntegerTests.test_overflow_list_over_uint8_listcr()Ncrd)N)r/rr/rerr>rrr�rfz<IntegerTests.test_short_list_over_uint8_list.<locals>.assign�rrArr8rrr>r�test_short_list_over_uint8_list�r!z,IntegerTests.test_short_list_over_uint8_listcr()Ncrd)N)r/rr/�rlrlrlrlrerr>rrr�rfz;IntegerTests.test_long_list_over_uint8_list.<locals>.assignrjrrr>r�test_long_list_over_uint8_list�r!z+IntegerTests.test_long_list_over_uint8_listcCs(t��}d|jd<|�|jdd�dS)Nr/rr_rIrrr�test_assign_into_uint8_list�rbz(IntegerTests.test_assign_into_uint8_listcr()Nc�d�jd<dS)Nrrrerr>rrr�rfz:IntegerTests.test_negative_into_uint8_list.<locals>.assignr@rrr>r�test_negative_into_uint8_list�r!z*IntegerTests.test_negative_into_uint8_listcr()Ncro)Nrhrrerr>rrr�rfz:IntegerTests.test_overflow_into_uint8_list.<locals>.assignr@rrr>r�test_overflow_into_uint8_list�r!z*IntegerTests.test_overflow_into_uint8_listN)&�__name__�
__module__�__qualname__rrr r'r,r1r2r3r5r6r9r:r;r<rBrDrFrJrMrOrQrTrVrXrYrZrarcrgrirkrmrnrprqrrrrrsHr)�__doc__�samba.dcerpcrrrr�samba.tests�samba�tests�TestCaserrrrr�<module>s