o
    Ďi^
                     @   sJ   d Z ddlmZ ddlmZ dZG dd dejZedkr#e  dS dS )	z$Tests for custom description module.    )custom_descriptions)	testutilsP   c                   @   sD   e Zd Zdd Zdd Zdd Zdd Zd	d
 Zdd Zdd Z	dS )CustomDescriptionTestc                 C   $   d}t j|dtd}| |d d S )NTestr   objavailable_spaceline_length"Test"r   
GetSummaryLINE_LENGTHassertEqualself	componentsummary r   Y/home/jeff/fluffinator/venv/lib/python3.10/site-packages/fire/custom_descriptions_test.py%test_string_type_summary_enough_space   
   z;CustomDescriptionTest.test_string_type_summary_enough_spacec                 C   r   )Nr      r   z"..."r   r   r   r   r   3test_string_type_summary_not_enough_space_truncated   r   zICustomDescriptionTest.test_string_type_summary_not_enough_space_truncatedc                 C   r   )Nr      r   r   r   r   r   r   r   2test_string_type_summary_not_enough_space_new_line%   r   zHCustomDescriptionTest.test_string_type_summary_not_enough_space_new_linec                 C   r   )NLorem ipsum dolor sit amet
   r   z
"Lorem..."r   r   r   r   r   8test_string_type_summary_not_enough_space_long_truncated+   r   zNCustomDescriptionTest.test_string_type_summary_not_enough_space_long_truncatedc                 C   r   )Nr   r   r   zThe string "Test"r   GetDescriptionr   r   r   r   descriptionr   r   r   )test_string_type_description_enough_space1   r   z?CustomDescriptionTest.test_string_type_description_enough_spacec                 C   r   )Nr      r   zThe string "Lore..."r    r"   r   r   r   7test_string_type_description_not_enough_space_truncated7   r   zMCustomDescriptionTest.test_string_type_description_not_enough_space_truncatedc                 C   r   )Nr   r   r   z'The string "Lorem ipsum dolor sit amet"r    r"   r   r   r   6test_string_type_description_not_enough_space_new_line=   r   zLCustomDescriptionTest.test_string_type_description_not_enough_space_new_lineN)
__name__
__module____qualname__r   r   r   r   r$   r&   r'   r   r   r   r   r      s    r   __main__N)	__doc__firer   r   r   BaseTestCaser   r(   mainr   r   r   r   <module>   s   -