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/kcc/__pycache__/graph.cpython-310.pyc
o

�/al	�@sDdZddlZddlZddlmZmZdd�ZGdd�dejj�Z	dS)zTests for samba.kcc.graph�N)�total_schedule�convert_schedule_to_repltimescCsh|durdSddlm}|��}d|_d|_d|_|��}d|_d|_|g|_	|�
�}||_|g|_|S)Nr)�drsblobs���)
�samba.dcerpcr�schedule�size�	bandwidth�numberOfSchedules�scheduleHeader�type�offset�headerArray�
scheduleSlots�slots�	dataArray)�timesrr	�header�data�r�7/usr/lib/python3/dist-packages/samba/tests/kcc/graph.py�ntdsconn_schedulesrc@seZdZdd�Zdd�ZdS)�GraphFunctionTestscCs�dgd}dgddfdgddfdgddfdd	gd
dfttd��d
dfttd��ddffD]\}}|�t|�|�q2dS)N��T��i��iP��3�*����l��)�list�range�assertEqualr)�selfr	�totalrrr�test_total_schedule.s
��z&GraphFunctionTests.test_total_schedulecCs�dgddgdfddgdfdgddgdfddgdd	gdfttd
��dgd�d
ffD]\}}t|�}|�t|�|�q1dS)Nrr�r��fr �
�:r$�)r�#�E�`��4�Vr%)r)r*rr+r)r,�ntdsconn_times�	repltimesr	rrr�"test_convert_schedule_to_repltimes9s
��
��z5GraphFunctionTests.test_convert_schedule_to_repltimesN)�__name__�
__module__�__qualname__r.r=rrrrr,sr)
�__doc__�samba�samba.tests�samba.kcc.graphrrr�tests�TestCaserrrrr�<module>s