Sindbad~EG File Manager
�
&Μg:\ � �D � d dl mZ d dlZd dlmZ d dlmZ d dlmZm Z d dl
mZ d dlm
Z G d� d ej � Z G d
� dej � Z G d� d
ej � 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� dej � Zed k( r ej8 d!d!�"� yy)#� )�formatN)�mock)�requires)�Tk�Text)�EditorWindow)�Editorc �4 � e Zd Z dZdZdZdZdZd� Zd� Z d� Z
y )
�Is_Get_Testz# 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__r r&