File: D:/Python311/Lib/idlelib/idle_test/__pycache__/test_format.cpython-311.opt-2.pyc
�
��Vc�^ � �4 � 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 ej d!d!�"� � dS dS )#� )�formatN)�mock)�requires)�Tk�Text)�EditorWindow)�Editorc �6 � e Zd Z dZdZdZdZdZd� Zd� Z d� Z
d S )
�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 � � | � t j d� � � � | � t j d� � � � | � t j | j � � � � d S )N� z
)�
assertTrue�ft�is_all_white�assertFalse�test_comment��selfs �1D:\Python311\Lib\idlelib\idle_test\test_format.py�test_is_all_whitezIs_Get_Test.test_is_all_white sa � �������+�+�,�,�,�������5�5�6�6�6�������):�;�;�<�<�<�<�<� c �, � | j } |t j | j � � d� � |t j | j � � d� � |t j | j � � d� � |t j | j � � d� � d S )Nr
� )�assertEqualr �
get_indentr �trailingws_comment�leadingws_comment�leadingws_nocomment�r �Equals r �test_get_indentzIs_Get_Test.test_get_indent s� � �� ��
��b�m�D�-�.�.��3�3�3�
��b�m�D�3�4�4�b�9�9�9�
��b�m�D�2�3�3�V�<�<�<�
��b�m�D�4�5�5�v�>�>�>�>�>r c �r � | j } |t j | j � � d� � |t j | j � � d� � |t j | j � � d� � |t j | j � � d� � |t j | j � � d� � d S )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�6�6��<�<�<�
��b�#�D�$;�<�<�c�B�B�B�
��b�#�D�$:�;�;�W�E�E�E�
��b�#�D�$<�=�=�v�F�F�F�
��b�#�D�$7�8�8�"�=�=�=�=�=r N)�__name__�
__module__�__qualname__r r&