
    iW
                     ~    S r SSKJr  SSKJr  Sr " S S\R
                  5      r\S:X  a  \R                  " 5         gg)	zTests for formatting.py.    )
formatting)	testutilsP   c                   P    \ rS rSrS rS rS rS rS rS r	S r
S	 rS
 rS rSrg)FormattingTest   c                 X    [         R                  " S5      nU R                  USS/5        g )Nhelloz[1mhello[0m)r   BoldassertInselftexts     T/var/www/html/banglarbhumi/venv/lib/python3.13/site-packages/fire/formatting_test.py	test_boldFormattingTest.test_bold   s$    ??7#DMM$"789    c                 X    [         R                  " S5      nU R                  USS/5        g )Nr
   z[4mhello[0m)r   	Underliner   r   s     r   test_underlineFormattingTest.test_underline   s&    (DMM$"789r   c                 R    [         R                  " SSS9nU R                  SU5        g )Nr
      spacesz  hellor   IndentassertEqualr   s     r   test_indentFormattingTest.test_indent!   s$    WQ/DY%r   c                 R    [         R                  " SSS9nU R                  SU5        g )Nzhello
worldr   r   z  hello
  worldr   r   s     r   test_indent_multiple_lines)FormattingTest.test_indent_multiple_lines%   s%    ^A6D'.r   c                 X    [         R                  " S/5      nU R                  S/U5        g )Nricer   WrappedJoinr   r   liness     r   test_wrap_one_item!FormattingTest.test_wrap_one_item)   s&    ""F8,EfXu%r   c                 Z    [         R                  " / SQSS9nU R                  / SQU5        g )N)r%   beanschickencheese   )width)zrice | beans |z	chicken |r/   r&   r(   s     r   test_wrap_multiple_items'FormattingTest.test_wrap_multiple_items-   s.    ""#I)+-E  !&(r   c                 `    Sn[         R                  " US[        S9nU R                  SU5        g )NThis is a string
   r   available_spaceline_lengthz
This is...r   EllipsisTruncateLINE_LENGTHr   r   r   truncated_texts      r   test_ellipsis_truncate%FormattingTest.test_ellipsis_truncate4   s/    D002;@N\>2r   c                 `    Sn[         R                  " US[        S9nU R                  SU5        g )Nr5   r   r7   r:   r=   s      r   'test_ellipsis_truncate_not_enough_space6FormattingTest.test_ellipsis_truncate_not_enough_space:   s/    D001+?N'8r   c                 `    Sn[         R                  " US[        S9nU R                  SU5        g )N1000000000L   r7   z10...0Lr   EllipsisMiddleTruncater<   r   r=   s      r   test_ellipsis_middle_truncate,FormattingTest.test_ellipsis_middle_truncate@   s.    D661+?NY/r   c                 `    Sn[         R                  " US[        S9nU R                  SU5        g )NrE   r   r7   rG   r=   s      r   .test_ellipsis_middle_truncate_not_enough_space=FormattingTest.test_ellipsis_middle_truncate_not_enough_spaceF   s.    D661+?N]N3r    N)__name__
__module____qualname____firstlineno__r   r   r   r"   r*   r2   r?   rB   rI   rL   __static_attributes__rN   r   r   r   r      s4    ::&/&(3904r   r   __main__N)	__doc__firer   r   r<   BaseTestCaser   rO   mainrN   r   r   <module>rY      sA      34Y++ 34l z.. r   