관리-도구
편집 파일: test_rules.cpython-311.pyc
� �܋f; � �B � d dl Z d dlmZ d dlmZ G d� de� � ZdS )� N)�Rules)�TestCasec �H � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � ZdS )� TestRuleszTests for tap.rules.Rulesc �\ � t j � � | _ t d| 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 | j j � � � � | � d| j j d j j � � d S )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_plan s� � ��L�*�*�:L�*�M�M� ���� � �� �"�"�9�-�-�-�����C�� � 1�2�2�3�3�3����+�T�Z�->�q�-A�-G�-S�T�T�T�T�Tr c �@ � | j � � � }| � � � }|� |d� � | � |j d d d |� � | � |j d d d d� � d S )N� �planr r )r r r �saw_planr �_lines_seen�r r r s r �test_tracks_plan_linezTestRules.test_tracks_plan_line s� � ��|�%�%�'�'����� � �� ���t�R� � � �����*�6�2�1�5�a�8�$�?�?�?�����*�6�2�1�5�a�8�"�=�=�=�=�=r c � � | j � � � }| � � � }|� |d� � |� d� � | � d| j j d j j � � d S )N�) �* z7A plan must appear at the beginning or end of the file.r � r r r r �checkr r r r r r"