HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //lib/python3.6/site-packages/tracer/tests/__pycache__/test_collections.cpython-36.pyc
3

�|
`�	�@sbddlTddlmZmZddlmZmZddlmZddl	m
Z
mZmZm
Z
Gdd�dej�Zd	S)
�)�*�)�Applications�Application)�	Processes�AffectedProcess)�Package)�ApplicationsCollection�ProcessesCollection�PackagesCollection�AffectedProcessesCollectionc@sHeZdZdd�Zdd�Zdd�Zejdd�d	d
��Zdd�Z	d
d�Z
dS)�TestCollectionscCs�tj}tdd|d��}tdd|d��}tdd|d��}t|||g�}|j|jd�t|||g��|j|jd	�t|||g��|j|t�dS)
N�foo�bar)�name�helper�type�baz�quxZquuxZcorgerr)rZDEFAULT_TYPErr	�assertEqual�sorted�assertIsInstance)�selfZdefault_type�a1�a2�a3�
collection�r�&/usr/lib/python3.6/test_collections.py�test_applications_sorted
sz(TestCollections.test_applications_sortedcCs<tj�}|j|t�|j|jd�t�|j|jd�t�dS)N�usergff���A)r�allrr
�owned_byZ
newer_than)rrrrr�test_processes_typessz$TestCollections.test_processes_typescCs"tj�jd�}|jt|�d�dS)Nr)rr!r"Z
assertGreater�len)rrrrr�test_processes_none_usersz(TestCollections.test_processes_none_userTz%@TODO Create Mock for Processes classcCsftd�}td�}tdddg�|_t�}|j|g�|j|g�|j||�|jd||j|�j�dS)Ni�rrr)r�set�filesr�updateZassertIn�index)r�p1�p2�crrr�test_processes_updatesz%TestCollections.test_processes_updatecCs�td�}td�}td�}tdd�}td�}t||||g�}|j|j||g�jd�t||g�jd��|j|jd�|�|j|j|g�dj�dS)Nrrrr�{rr)rrr�intersectionrZassertIsNotNoneZmodified)rr*r+Zp3Zp4Zp5�c1rrr�test_packages_intersection,s
*z*TestCollections.test_packages_intersectioncCs|tddi�}tddi�}tddi�}t|||g�}dd�|D�dddhksNt�|jddd�dd�|D�dddhksxt�dS)	NrrrrcSsh|]
}|j�qSr)r)�.0�arrr�	<setcomp>=sz6TestCollections.test_replace_values.<locals>.<setcomp>rcSsh|]
}|j�qSr)r)r2r3rrrr4?s)rr	�AssertionErrorZreplace_values)rrrrr0rrr�test_replace_values7sz#TestCollections.test_replace_valuesN)�__name__�
__module__�__qualname__rr#r%�unittestZskipIfr-r1r6rrrrr
s
r
N)Z__meta__Ztracer.resources.applicationsrrZtracer.resources.processesrrZtracer.resources.packagerZtracer.resources.collectionsr	r
rrr:ZTestCaser
rrrr�<module>s