Ë
    ü[;j^
  ã                   ó|   — 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)Ú	testutilséP   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      úfG:\00. PROJECTS\API\Inventory\templateJSON\kerjaOCR\Lib\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à×Ñ�W˜hÕ'ó    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Ü!×,Ñ,Ø q´kôC€Gà×Ñ�W˜gÕ&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Ü!×,Ñ,Ø q´kôC€Gà×Ñ�W˜hÕ'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à×Ñ�W˜lÕ+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   