ó
    Ö›‘hý  ã                   óR   • S SK Jr  S SKJr  S SKJr   " S S\R                  5      rg)é    )Útext)Ú
attributes)Úunittestc                   ór   • \ rS rSrSrSS jrSS jrSS jrSS jrSS jr	SS	 jr
SS
 jrSS jrSS jrSrg)ÚFormattedTextTestsé
   z&
Tests for assembling formatted text.
Nc                 ór   • U R                  [        R                  " [        R                  S   5      S5        g)z]
Using no formatting attributes produces no VT102 control sequences in
the flattened output.
úHello, world.N)ÚassertEqualr   ÚassembleFormattedTextÚAÚnormal©Úselfs    Ú`C:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\twisted/conch/test/test_text.pyÚtest_trivialÚFormattedTextTests.test_trivial   s+   € ð
 	×ÑÜ×&Ò&¤q§x¡x°Ñ'@ÓAÀ?õ	
ó    c                 ór   • U R                  [        R                  " [        R                  S   5      S5        g)zk
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_boldÚFormattedTextTests.test_bold   s,   € ð
 	×ÑÜ×&Ò&¤q§v¡v¨oÑ'>Ó?ÐAWõ	
r   c                 ór   • U R                  [        R                  " [        R                  S   5      S5        g)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_underlineÚ!FormattedTextTests.test_underline!   s,   € ð
 	×ÑÜ×&Ò&¤q§{¡{°?Ñ'CÓDØ"õ	
r   c                 ór   • U R                  [        R                  " [        R                  S   5      S5        g)zq
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_blinkÚFormattedTextTests.test_blink+   s,   € ð
 	×ÑÜ×&Ò&¤q§w¡w¨Ñ'?Ó@ÐBXõ	
r   c                 ór   • U R                  [        R                  " [        R                  S   5      S5        g)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_reverseVideoÚ$FormattedTextTests.test_reverseVideo4   s,   € ð
 	×ÑÜ×&Ò&¤q§~¡~°oÑ'FÓGØ"õ	
r   c           	      ó¾   • U R                  [        R                  " [        R                  [        R
                  S[        R                  S   * S4      5      S5        g)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_minusÚFormattedTextTests.test_minus>   sM   € ð 	×ÑÜ×&Ò&Ü—‘”q—w‘w˜w¬¯©°Ñ)9Ð(9¸3Ð>Ñ?Ñ@óð 6õ		
r   c                 óâ   • U R                  [        R                  " [        R                  [        R
                  R                  S   [        R
                  R                  S   4   5      S5        g)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_foregroundÚ"FormattedTextTests.test_foregroundK   óP   € ð
 	×ÑÜ×&Ò&Ü—‘œŸ™Ÿ™ )Ñ,¬a¯d©d¯j©j¸Ñ.BÐBÑCóð ,õ		
r   c                 óâ   • U R                  [        R                  " [        R                  [        R
                  R                  S   [        R
                  R                  S   4   5      S5        g)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_backgroundÚ"FormattedTextTests.test_backgroundW   r2   r   c                 óh  • U R                  U R                  /5      nU R                  [        U5      S5        [        R
                    U R                  U R                  /5      nU R                  [        U5      S5        U R                  US   S   [        5        U R                  US   S   S5        g)z^
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   r<   Ú)FormattedTextTests.test_flattenDeprecatedc   s¤   € ð
 ×*Ñ*¨D×,GÑ,GÐ+HÓIˆØ×Ñœ˜]Ó+¨QÔ/ô 	�Šà×*Ñ*¨D×,GÑ,GÐ+HÓIˆØ×Ñœ˜]Ó+¨QÔ/Ø×Ñ˜ qÑ)¨*Ñ5Ô7IÔJØ×ÑØ˜!Ñ˜YÑ'ðõ	
r   © )ÚreturnN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r   r#   r(   r0   r5   r<   Ú__static_attributes__rB   r   r   r   r   
   s4   † ñô
ô
ô
ô
ô
ô
ô

ô

÷
r   r   N)	Útwisted.conch.insultsr   Útwisted.conch.insults.textr   r   Útwisted.trialr   ÚTestCaser   rB   r   r   Ú<module>rN      s$   ðõ
 'Ý 6Ý "ôl
˜×*Ñ*õ l
r   