§
    Ètºfý  ã                   óP   — d dl mZ d dlmZ d dlmZ  G d„ dej        ¦  «        ZdS )é    )Útext)Ú
attributes)Úunittestc                   óZ   — e Zd 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d„Zdd„ZdS )ÚFormattedTextTestsz.
    Tests for assembling formatted text.
    ÚreturnNc                 óv   — |                       t          j        t          j        d         ¦  «        d¦  «         dS )zu
        Using no formatting attributes produces no VT102 control sequences in
        the flattened output.
        úHello, world.N)ÚassertEqualr   ÚassembleFormattedTextÚAÚnormal©Úselfs    ú[/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/conch/test/test_text.pyÚtest_trivialzFormattedTextTests.test_trivial   s=   € ð
 	×ÒÝÔ&¥q¤x°Ô'@ÑAÔAÀ?ñ	
ô 	
ð 	
ð 	
ð 	
ó    c                 óv   — |                       t          j        t          j        d         ¦  «        d¦  «         dS )zƒ
        The bold formatting attribute, L{A.bold}, emits the VT102 control
        sequence to enable bold when flattened.
        r
   z[1mHello, world.N)r   r   r   r   Úboldr   s    r   Ú	test_boldzFormattedTextTests.test_bold   s>   € ð
 	×ÒÝÔ&¥q¤v¨oÔ'>Ñ?Ô?ÐAWñ	
ô 	
ð 	
ð 	
ð 	
r   c                 óv   — |                       t          j        t          j        d         ¦  «        d¦  «         dS )z”
        The underline formatting attribute, L{A.underline}, emits the VT102
        control sequence to enable underlining when flattened.
        r
   z[4mHello, world.N)r   r   r   r   Ú	underliner   s    r   Útest_underlinez!FormattedTextTests.test_underline!   s>   € ð
 	×ÒÝÔ&¥q¤{°?Ô'CÑDÔDØ"ñ	
ô 	
ð 	
ð 	
ð 	
r   c                 óv   — |                       t          j        t          j        d         ¦  «        d¦  «         dS )z‰
        The blink formatting attribute, L{A.blink}, emits the VT102 control
        sequence to enable blinking when flattened.
        r
   z[5mHello, world.N)r   r   r   r   Úblinkr   s    r   Ú
test_blinkzFormattedTextTests.test_blink+   s>   € ð
 	×ÒÝÔ&¥q¤w¨Ô'?Ñ@Ô@ÐBXñ	
ô 	
ð 	
ð 	
ð 	
r   c                 óv   — |                       t          j        t          j        d         ¦  «        d¦  «         dS )zž
        The reverse-video formatting attribute, L{A.reverseVideo}, emits the
        VT102 control sequence to enable reversed video when flattened.
        r
   z[7mHello, world.N)r   r   r   r   ÚreverseVideor   s    r   Útest_reverseVideoz$FormattedTextTests.test_reverseVideo4   s>   € ð
 	×ÒÝÔ&¥q¤~°oÔ'FÑGÔGØ"ñ	
ô 	
ð 	
ð 	
ð 	
r   c           	      ó¾   — |                       t          j        t          j        t          j        dt          j        d          df                  ¦  «        d¦  «         dS )zÉ
        Formatting attributes prefixed with a minus (C{-}) temporarily disable
        the prefixed attribute, emitting no VT102 control sequence to enable
        it in the flattened output.
        ÚHelloz worldú.z[1;5mHello[0;5m world[1;5m.N)r   r   r   r   r   r   r   s    r   Ú
test_minuszFormattedTextTests.test_minus>   s]   € ð 	×ÒÝÔ&Ý”•q”w˜w­¬°Ô)9Ð(9¸3Ð>Ô?Ô@ñô ð 6ñ		
ô 	
ð 	
ð 	
ð 	
r   c                 óÎ   — |                       t          j        t          j        t          j        j        d         t          j        j        d         f         ¦  «        d¦  «         dS )z£
        The foreground color formatting attribute, L{A.fg}, emits the VT102
        control sequence to set the selected foreground color when flattened.
        úHello, úworld!z[31mHello, [32mworld!N)r   r   r   r   r   ÚfgÚredÚgreenr   s    r   Útest_foregroundz"FormattedTextTests.test_foregroundK   ó\   € ð
 	×ÒÝÔ&Ý”�œœ )Ô,­a¬d¬j¸Ô.BÐBÔCñô ð ,ñ		
ô 	
ð 	
ð 	
ð 	
r   c                 óÎ   — |                       t          j        t          j        t          j        j        d         t          j        j        d         f         ¦  «        d¦  «         dS )z£
        The background color formatting attribute, L{A.bg}, emits the VT102
        control sequence to set the selected background color when flattened.
        r%   r&   z[41mHello, [42mworld!N)r   r   r   r   r   Úbgr(   r)   r   s    r   Útest_backgroundz"FormattedTextTests.test_backgroundW   r+   r   c                 ó¨  — |                       | j        g¦  «        }|                      t          |¦  «        d¦  «         t          j         |                       | j        g¦  «        }|                      t          |¦  «        d¦  «         |                      |d         d         t          ¦  «         |                      |d         d         d¦  «         dS )zv
        L{twisted.conch.insults.text.flatten} emits a deprecation warning when
        imported or accessed.
        r   é   ÚcategoryÚmessagez‚twisted.conch.insults.text.flatten was deprecated in Twisted 13.1.0: Use twisted.conch.insults.text.assembleFormattedText instead.N)ÚflushWarningsÚtest_flattenDeprecatedr   Úlenr   ÚflattenÚDeprecationWarning)r   ÚwarningsShowns     r   r4   z)FormattedTextTests.test_flattenDeprecatedc   sÐ   € ð
 ×*Ò*¨DÔ,GÐ+HÑIÔIˆØ×Ò�˜]Ñ+Ô+¨QÑ/Ô/Ð/õ 	Œˆà×*Ò*¨DÔ,GÐ+HÑIÔIˆØ×Ò�˜]Ñ+Ô+¨QÑ/Ô/Ð/Ø×Ò˜ qÔ)¨*Ô5Õ7IÑJÔJÐJØ×ÒØ˜!Ô˜YÔ'ðñ	
ô 	
ð 	
ð 	
ð 	
r   )r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r#   r*   r.   r4   © r   r   r   r   
   sÒ   € € € € € ðð ð
ð 
ð 
ð 
ð
ð 
ð 
ð 
ð
ð 
ð 
ð 
ð
ð 
ð 
ð 
ð
ð 
ð 
ð 
ð
ð 
ð 
ð 
ð

ð 

ð 

ð 

ð

ð 

ð 

ð 

ð
ð 
ð 
ð 
ð 
ð 
r   r   N)	Útwisted.conch.insultsr   Útwisted.conch.insults.textr   r   Útwisted.trialr   ÚTestCaser   r=   r   r   ú<module>rB      s~   ðð
 'Ð &Ð &Ð &Ð &Ð &Ø 6Ð 6Ð 6Ð 6Ð 6Ð 6Ø "Ð "Ð "Ð "Ð "Ð "ðl
ð l
ð l
ð l
ð l
˜Ô*ñ l
ô l
ð l
ð l
ð l
r   