
    |h^
                     |    d Z ddlmZ ddlmZ dZ G d dej
                        Zedk(  r ej                          yy)	z$Tests for custom description module.    )custom_descriptions)	testutilsP   c                   6    e Zd Zd Zd Zd Zd Zd Zd Zd Z	y)	CustomDescriptionTestc                 d    d}t        j                  |dt              }| j                  |d       y )NTestr   objavailable_spaceline_length"Test"r   
GetSummaryLINE_LENGTHassertEqualself	componentsummarys      \/var/www/html/test/engine/venv/lib/python3.12/site-packages/fire/custom_descriptions_test.py%test_string_type_summary_enough_spacez;CustomDescriptionTest.test_string_type_summary_enough_space   s/    I!,,r{DGWh'    c                 d    d}t        j                  |dt              }| j                  |d       y )Nr	      r
   z"..."r   r   s      r   3test_string_type_summary_not_enough_space_truncatedzICustomDescriptionTest.test_string_type_summary_not_enough_space_truncated   s/    I!,,qkCGWg&r   c                 d    d}t        j                  |dt              }| j                  |d       y )Nr	      r
   r   r   r   s      r   2test_string_type_summary_not_enough_space_new_linezHCustomDescriptionTest.test_string_type_summary_not_enough_space_new_line%   s/    I!,,qkCGWh'r   c                 d    d}t        j                  |dt              }| j                  |d       y )NLorem ipsum dolor sit amet
   r
   z
"Lorem..."r   r   s      r   8test_string_type_summary_not_enough_space_long_truncatedzNCustomDescriptionTest.test_string_type_summary_not_enough_space_long_truncated+   s/    ,I!,,r{DGWl+r   c                 d    d}t        j                  |dt              }| j                  |d       y )Nr	   r   r
   zThe string "Test"r   GetDescriptionr   r   r   r   descriptions      r   )test_string_type_description_enough_spacez?CustomDescriptionTest.test_string_type_description_enough_space1   s0    I%44r{DK["56r   c                 d    d}t        j                  |dt              }| j                  |d       y )Nr!      r
   zThe string "Lore..."r%   r'   s      r   7test_string_type_description_not_enough_space_truncatedzMCustomDescriptionTest.test_string_type_description_not_enough_space_truncated7   s0    ,I%44r{DK["89r   c                 d    d}t        j                  |dt              }| j                  |d       y )Nr!   r"   r
   z'The string "Lorem ipsum dolor sit amet"r%   r'   s      r   6test_string_type_description_not_enough_space_new_linezLCustomDescriptionTest.test_string_type_description_not_enough_space_new_line=   s0    ,I%44r{DK["KLr   N)
__name__
__module____qualname__r   r   r   r#   r)   r,   r.    r   r   r   r      s&    ('(,7:Mr   r   __main__N)	__doc__firer   r   r   BaseTestCaser   r/   mainr2   r   r   <module>r8      sE    + $ *MI22 *MZ z).. r   