File: D:/Python311/Lib/idlelib/idle_test/__pycache__/test_format.cpython-311.opt-1.pyc
�
��Vc�^ � �6 � 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"�#� � dS dS )$zTest format, coverage 99%.� )�formatN)�mock)�requires)�Tk�Text)�EditorWindow)�Editorc �8 � e Zd ZdZdZdZdZdZdZd� Z d� Z
d � Zd
S )�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 � � | � 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__�__doc__r r&