
    `j^
                     z    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                     dS dS )	z$Tests for custom description module.    )custom_descriptions)	testutilsP   c                   8    e Zd Zd Zd Zd Zd Zd Zd Zd Z	dS )	CustomDescriptionTestc                 n    d}t          j        |dt                    }|                     |d           d S )NTestr   objavailable_spaceline_length"Test"r   
GetSummaryLINE_LENGTHassertEqualself	componentsummarys      a/home/jworkman/hermes-web-chat/venv/lib/python3.11/site-packages/fire/custom_descriptions_test.py%test_string_type_summary_enough_spacez;CustomDescriptionTest.test_string_type_summary_enough_space   sD    I!,r{D D DGWh'''''    c                 n    d}t          j        |dt                    }|                     |d           d S )Nr	      r
   z"..."r   r   s      r   3test_string_type_summary_not_enough_space_truncatedzICustomDescriptionTest.test_string_type_summary_not_enough_space_truncated   sD    I!,qkC C CGWg&&&&&r   c                 n    d}t          j        |dt                    }|                     |d           d S )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%   sD    I!,qkC C CGWh'''''r   c                 n    d}t          j        |dt                    }|                     |d           d S )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+   sD    ,I!,r{D D DGWl+++++r   c                 n    d}t          j        |dt                    }|                     |d           d S )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   sE    I%4r{D D DK["566666r   c                 n    d}t          j        |dt                    }|                     |d           d S )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   sE    ,I%4r{D D DK["899999r   c                 n    d}t          j        |dt                    }|                     |d           d S )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=   sE    ,I%4r{D D DK["KLLLLLr   N)
__name__
__module____qualname__r   r   r   r#   r)   r,   r.    r   r   r   r      s        ( ( (' ' '( ( (, , ,7 7 7: : :M M M M Mr   r   __main__N)	__doc__firer   r   r   BaseTestCaser   r/   mainr2   r   r   <module>r8      s    + * $ $ $ $ $ $      *M *M *M *M *MI2 *M *M *MZ z). r   