Sindbad~EG File Manager
�
&Μg:\ � �F � d Z ddlmZ ddlZddlmZ ddlmZ ddlm Z m
Z
ddlmZ ddl
mZ G d � d
ej � Z G d� dej � Z G d
� dej � Z G d� dej � Z G d� dej � Z G d� d� Z G d� d� Z G d� dej � Z G d� d� Z G d� dej � Z G d� dej � Z G d� d ej � Zed!k( r ej: d"d"�#� yy)$zTest format, coverage 99%.� )�formatN)�mock)�requires)�Tk�Text)�EditorWindow)�Editorc �6 � e Zd ZdZdZdZdZdZdZd� Z d� Z
d � Zy
)�Is_Get_TestzTest the is_ and get_ functionsz# This is a commentzThis is not a commentz# This is a comment z # This is a commentz This is not a commentc �� � | j t j d� � | j t j d� � | j t j | j � � y )N� z
)�
assertTrue�ft�is_all_white�assertFalse�test_comment��selfs �:/usr/local/lib/python3.12/idlelib/idle_test/test_format.py�test_is_all_whitezIs_Get_Test.test_is_all_white sI � ��������+�,��������5�6��������):�):�;�<� c �L � | j } |t j | j � d� |t j | j � d� |t j | j
� d� |t j | j � d� y )Nr
� )�assertEqualr �
get_indentr �trailingws_comment�leadingws_comment�leadingws_nocomment�r �Equals r �test_get_indentzIs_Get_Test.test_get_indent sq � �� � ��
�b�m�m�D�-�-�.��3�
�b�m�m�D�3�3�4�b�9�
�b�m�m�D�2�2�3�V�<�
�b�m�m�D�4�4�5�v�>r c � � | j } |t j | j � d� |t j | j � d� |t j | j
� d� |t j | j � d� |t j | j � d� y )N�#� #r r
)r r �get_comment_headerr r r r �test_nocommentr s r �test_get_comment_headerz#Is_Get_Test.test_get_comment_header s� � �� � ��
�b�#�#�D�$5�$5�6��<�
�b�#�#�D�$;�$;�<�c�B�
�b�#�#�D�$:�$:�;�W�E�
�b�#�#�D�$<�$<�=�v�F�
�b�#�#�D�$7�$7�8�"�=r N)�__name__�
__module__�__qualname__�__doc__r r&