o
    Zb
                     @   sn   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dZG dd	 d	ej	Z
ed
kr5e  dS dS )z$Tests for custom description module.    )absolute_import)division)print_function)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   objZavailable_spaceZline_length"Test"r   Z
GetSummaryLINE_LENGTHassertEqualself	componentsummary r   MD:\Projects\ConvertPro\env\Lib\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   ZGetDescriptionr   r   r   r   descriptionr   r   r   )test_string_type_description_enough_space5   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_truncated;   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_lineA   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__Z
__future__r   r   r   firer   r   r   ZBaseTestCaser   r'   mainr   r   r   r   <module>   s   -