404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.224.44.207: ~ $
�

�܋f;��B�ddlZddlmZddlmZGd�de��ZdS)�N)�Rules)�TestCasec�H�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�ZdS)�	TestRuleszTests for tap.rules.Rulesc�\�tj��|_td|j��S)Nz
foobar.tap)�unittest�	TestSuite�suiter)�selfs �e/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/tap/tests/test_rules.py�	_make_onezTestRules._make_one
s$���'�)�)��
��\�4�:�.�.�.�c�H�|j�d���}|���}|�|��|�dt|jj����|�d|jjdjj	��dS)NzSkip on Mondays.)�directive_text�r)
�factory�	make_planr
�handle_skipping_plan�assertEqual�lenr
�_tests�_line�description)r�	skip_plan�ruless   r�test_handles_skipping_planz$TestRules.test_handles_skipping_plans����L�*�*�:L�*�M�M�	���� � ��
�"�"�9�-�-�-�����C��
� 1�2�2�3�3�3����+�T�Z�->�q�-A�-G�-S�T�T�T�T�Trc�@�|j���}|���}|�|d��|�|jddd|��|�|jdddd��dS)N��planrr)rrr
�saw_planr�_lines_seen�rrrs   r�test_tracks_plan_linezTestRules.test_tracks_plan_lines����|�%�%�'�'����� � ��
���t�R� � � �����*�6�2�1�5�a�8�$�?�?�?�����*�6�2�1�5�a�8�"�=�=�=�=�=rc��|j���}|���}|�|d��|�d��|�d|jjdjj	��dS)N�)�*z7A plan must appear at the beginning or end of the file.r�
rrr
r �checkrr
rrrr"s   r�test_errors_plan_not_at_endz%TestRules.test_errors_plan_not_at_end s���|�%�%�'�'����� � ��
���t�R� � � �
���B�������E��J��a� �&�2�	
�	
�	
�	
�	
rc��|���}|�d��|�d|jjdjj��dS)Nr&zMissing a plan.r)r
r(rr
rrr)rrs  r�test_requires_planzTestRules.test_requires_plan,sM����� � ��
���B�������*�D�J�,=�a�,@�,F�,R�S�S�S�S�Src�B�|j���}|���}|�|d��|�|d��|�d��|�d|jjdjj	��dS)Nr%r&z)Only one plan line is permitted per file.rr'r"s   r�test_only_one_planzTestRules.test_only_one_plan3s����|�%�%�'�'����� � ��
���t�R� � � �
���t�R� � � �
���B�������7��J��a� �&�2�	
�	
�	
�	
�	
rc��|���}|�d��|�dd���}|�|��dS)z:A plan may appear on line 2 when line 1 is a version line.r�r&)�at_line�final_line_countN)r
�saw_version_at�_plan_on_valid_line�
assertTrue)rr�valids   r�test_plan_line_twozTestRules.test_plan_line_two@sU����� � ��
���Q�����)�)�!�b�)�I�I����������rc�l�|j�d���}|���}|�|d��|���|�d��|�d�dd���|jj	dj
j��dS)Nr&)�expected_testsrr/z:Expected {expected_count} tests but only {seen_count} ran.)�expected_count�
seen_countr)rrr
r �saw_testr(r�formatr
rrrr"s   r�3test_errors_when_expected_tests_differs_from_actualz=TestRules.test_errors_when_expected_tests_differs_from_actualIs����|�%�%�R�%�8�8����� � ��
���t�Q����
������
���A�������H�O�O�!�a�
P�
�
�
�J��a� �&�2�		
�	
�	
�	
�	
rc�p�|j�d���}|���}|�|��|�dt|jj����|�d�d���|jjdj	j
��dS)NzMissing something important.)�reasonrzBailed: {reason}r)r�	make_bailr
�handle_bailrrr
rr<rr)r�bailrs   r�test_errors_on_bailzTestRules.test_errors_on_bailXs����|�%�%�-K�%�L�L����� � ��
���$��������C��
� 1�2�2�3�3�3�����%�%�-K�%�L�L��J��a� �&�2�	
�	
�	
�	
�	
rN)
�__name__�
__module__�__qualname__�__doc__r
rr#r)r+r-r6r=rC�rrrrs�������#�#�/�/�/�U�U�U�>�>�>�

�

�

�T�T�T�
�
�
����

�

�

�

�

�

�

�

rr)r�	tap.rulesr�	tap.testsrrrHrr�<module>rKsp������������������[
�[
�[
�[
�[
��[
�[
�[
�[
�[
r

Filemanager

Name Type Size Permission Actions
__init__.cpython-311.pyc File 309 B 0644
factory.cpython-311.pyc File 2.46 KB 0644
run.cpython-311.pyc File 1.14 KB 0644
test_adapter.cpython-311.pyc File 3.76 KB 0644
test_directive.cpython-311.pyc File 2.6 KB 0644
test_formatter.cpython-311.pyc File 1.54 KB 0644
test_line.cpython-311.pyc File 3.46 KB 0644
test_loader.cpython-311.pyc File 7.51 KB 0644
test_main.cpython-311.pyc File 4.37 KB 0644
test_parser.cpython-311.pyc File 29.05 KB 0644
test_result.cpython-311.pyc File 7.55 KB 0644
test_rules.cpython-311.pyc File 6.42 KB 0644
test_runner.cpython-311.pyc File 5.55 KB 0644
test_tracker.cpython-311.pyc File 21.82 KB 0644
testcase.cpython-311.pyc File 965 B 0644