%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/conch/test/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/conch/test/__pycache__/test_text.cpython-312.pyc

�

Ϫ�f���R�ddlmZddlmZddlmZGd�dej�Zy)�)�text)�
attributes)�unittestc�X�eZdZdZdd�Zdd�Zdd�Zdd�Zdd�Zdd�Z	dd	�Z
dd
�Zdd�Zy)
�FormattedTextTestsz.
    Tests for assembling formatted text.
    Nc�p�|jtjtjd�d�y)zu
        Using no formatting attributes produces no VT102 control sequences in
        the flattened output.
        �
Hello, world.N)�assertEqualr�assembleFormattedText�A�normal��selfs �>/usr/lib/python3/dist-packages/twisted/conch/test/test_text.py�test_trivialzFormattedTextTests.test_trivials+��
	
����&�&�q�x�x��'@�A�?�	
�c�p�|jtjtjd�d�y)z�
        The bold formatting attribute, L{A.bold}, emits the VT102 control
        sequence to enable bold when flattened.
        r	zHello, world.N)r
rrr�boldrs r�	test_boldzFormattedTextTests.test_bolds,��
	
����&�&�q�v�v�o�'>�?�AW�	
rc�p�|jtjtjd�d�y)z�
        The underline formatting attribute, L{A.underline}, emits the VT102
        control sequence to enable underlining when flattened.
        r	zHello, world.N)r
rrr�	underliners r�test_underlinez!FormattedTextTests.test_underline!s,��
	
����&�&�q�{�{�?�'C�D�"�	
rc�p�|jtjtjd�d�y)z�
        The blink formatting attribute, L{A.blink}, emits the VT102 control
        sequence to enable blinking when flattened.
        r	zHello, world.N)r
rrr�blinkrs r�
test_blinkzFormattedTextTests.test_blink+s,��
	
����&�&�q�w�w��'?�@�BX�	
rc�p�|jtjtjd�d�y)z�
        The reverse-video formatting attribute, L{A.reverseVideo}, emits the
        VT102 control sequence to enable reversed video when flattened.
        r	zHello, world.N)r
rrr�reverseVideors r�test_reverseVideoz$FormattedTextTests.test_reverseVideo4s,��
	
����&�&�q�~�~�o�'F�G�"�	
rc	��|jtjtjtj
dtjddf�d�y)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�.zHello world.N)r
rrrrrrs r�
test_minuszFormattedTextTests.test_minus>sM��	
����&�&����q�w�w�w�����)9�(9�3�>�?�@�
�
6�		
rc���|jtjtjtj
jdtj
jdf�d�y)z�
        The foreground color formatting attribute, L{A.fg}, emits the VT102
        control sequence to set the selected foreground color when flattened.
        �Hello, �world!zHello, world!N)r
rrrr
�fg�red�greenrs r�test_foregroundz"FormattedTextTests.test_foregroundK�P��
	
����&�&���������)�,�a�d�d�j�j��.B�B�C�
�
,�		
rc���|jtjtjtj
jdtj
jdf�d�y)z�
        The background color formatting attribute, L{A.bg}, emits the VT102
        control sequence to set the selected background color when flattened.
        r$r%zHello, world!N)r
rrrr
�bgr'r(rs r�test_backgroundz"FormattedTextTests.test_backgroundWr*rc�h�|j|jg�}|jt|�d�tj
|j|jg�}|jt|�d�|j|ddt�|j|ddd�y)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  rr3z)FormattedTextTests.test_flattenDeprecatedcs���
�*�*�D�,G�,G�+H�I�
�����]�+�Q�/�	
����*�*�D�,G�,G�+H�I�
�����]�+�Q�/�����q�)�*�5�7I�J�����!��Y�'�
�	
r)�returnN)
�__name__�
__module__�__qualname__�__doc__rrrrrr"r)r-r3�rrrr
s4���
�
�
�
�
�
�

�

�
rrN)	�twisted.conch.insultsr�twisted.conch.insults.textrr�
twisted.trialr�TestCaserr=rr�<module>rBs$��
'�6�"�l
��*�*�l
r

Zerion Mini Shell 1.0