%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_helper.cpython-312.pyc

�

Ϫ�f�Q��*�ddlmZddlZddlmZddlmZddlmZm	Z	m
Z
mZmZm
Z
mZmZmZmZmZddlmZddlmZdZd	ZGd
�dej2�ZGd�d
�ZGd�d�ZGd�dej2�ZGd�dej2�Zy)�)�annotationsN)�Callable)�helper)�BLINK�BOLD�G0�G1�G2�G3�NORMAL�
REVERSE_VIDEO�	UNDERLINE�modes�privateModes)�failure)�unittest�P�c��eZdZd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Z	d$d�Z
d$d	�Zd$d
�Zd$d�Z
d$d�Zd$d
�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Zd$d�Z d$d�Z!d$d �Z"d$d!�Z#d$d"�Z$y#)%�BufferTestsc�j�tj�|_|jj�y�N)r�TerminalBuffer�term�connectionMade��selfs �@/usr/lib/python3/dist-packages/twisted/conch/test/test_helper.py�setUpzBufferTests.setUps"���)�)�+��	��	�	� � �"�c�h�|j|jjt�|j|jjt
�|j|jj
�dt
dz
z�|j|jj�d�y)N�
��rr)�assertEqualr�width�WIDTH�height�HEIGHT�	__bytes__�reportCursorPositionrs r�testInitialStatezBufferTests.testInitialState#sw����������%�0�������)�)�6�2�������,�,�.���!��0D�E�������7�7�9�6�Br c��|jtjdtjdi|jj�y)z�
        Verify that only DEC Auto Wrap Mode (DECAWM) and DEC Text Cursor Enable
        Mode (DECTCEM) are initially in the Set Mode (SM) state.
        TN)r%r�	AUTO_WRAP�CURSOR_MODErrs r�test_initialPrivateModesz$BufferTests.test_initialPrivateModes)s7��
	
���
�
#�
#�T�<�+C�+C�T�J��I�I�"�"�	
r c�N�|jjd�|jjd�|j|jj	�d�|jjd�|j|jj	�d�y)zQ
        C{"
"} moves the cursor to the first column in the current row.
        ���r2r3�
�rr3N)r�
cursorForward�
cursorDownr%r+�insertAtCursorrs r�test_carriageReturnzBufferTests.test_carriageReturn3st��	
�	�	����"��	�	���Q��������7�7�9�6�B��	�	� � ��'�������7�7�9�6�Br c��|jjd�|j|jj�d�|jj	d�|j|jj�d�y)zV
        C{"
"} moves the cursor to the next row without changing the column.
        r2)r2rr"�r2r#N)rr7r%r+r9rs r�
test_linefeedzBufferTests.test_linefeed=sb��	
�	�	����"�������7�7�9�6�B��	�	� � ��'�������7�7�9�6�Br c�N�|jjd�|jjd�|j|jj	�d�|jjd�|j|jj	�d�y)z:
        C{write} transforms C{"
"} into C{"
"}.
        r2r3r4r"�r�N)rr7r8r%r+�writers r�test_newlinezBufferTests.test_newlineFsr��	
�	�	����"��	�	���Q��������7�7�9�6�B��	�	�����������7�7�9�6�Br c�V�|jjj�}|jjtjtj
g�d|tj<d|tj
<|j
||jj�y)z�
        Verify that L{helper.TerminalBuffer.setPrivateModes} changes the Set
        Mode (SM) state to "set" for the private modes it is passed.
        TN)rr�copy�setPrivateModes�SCROLL�SCREENr%�r�expecteds  r�test_setPrivateModesz BufferTests.test_setPrivateModesPsy��
�9�9�)�)�.�.�0���	�	�!�!�<�#6�#6��8K�8K�"L�M�(,���$�$�%�(,���$�$�%�����4�9�9�#9�#9�:r c�N�|jjj�}|jjtjtj
g�|tj=|tj
=|j
||jj�y)z�
        Verify that L{helper.TerminalBuffer.resetPrivateModes} changes the Set
        Mode (SM) state to "reset" for the private modes it is passed.
        N)rrrD�resetPrivateModesr.r/r%rHs  r�test_resetPrivateModesz"BufferTests.test_resetPrivateModes[su��
�9�9�)�)�.�.�0���	�	�#�#�\�%;�%;�\�=U�=U�$V�W��\�+�+�,��\�-�-�.�����4�9�9�#9�#9�:r c��|jjd�|j|jj�d�|jj�|j|jj�d�|jjt�|j|jj�dtdz
f�y)Nr3r6r?rr#)rr8r%r+r)rs r�testCursorDownzBufferTests.testCursorDownfs����	�	���Q��������7�7�9�6�B��	�	����������7�7�9�6�B��	�	���V�$�������7�7�9�A�v��z�?�Kr c���|jjd�|j|jj�d�|jj	d�|jjd�|j|jj�d�|jjd�|j|jj�d�y)Nr2r$�r#)r�rR)r�cursorUpr%r+r8rs r�testCursorUpzBufferTests.testCursorUpns����	�	���1��������7�7�9�6�B��	�	���R� ��	�	���1��������7�7�9�7�C��	�	���2��������7�7�9�6�Br c��|jjd�|j|jj�d�|jjd�|j|jj�d�|jjt�|j|jj�tdf�y)N�)rVr)r@rr)rr7r%r+r'rs r�testCursorForwardzBufferTests.testCursorForwardys����	�	����"�������7�7�9�6�B��	�	����"�������7�7�9�6�B��	�	����&�������7�7�9�E�1�:�Fr c�b�|jjd�|jjd�|j|jj	�d�|jjd�|j|jj	�d�|jjd�|j|jj	�d�|jjd�|j|jj	�d�y)N�
rV)�r�)r#rr#r$)rr7�cursorBackwardr%r+rs r�testCursorBackwardzBufferTests.testCursorBackward�s����	�	����#��	�	� � ��#�������7�7�9�6�B��	�	� � ��#�������7�7�9�6�B��	�	� � ��#�������7�7�9�6�B��	�	� � ��#�������7�7�9�6�Br c��|jjdd�|j|jj�d�y)Nr3�	)r3r_)r�cursorPositionr%r+rs r�testCursorPositioningz!BufferTests.testCursorPositioning�s3���	�	� � ��A�&�������7�7�9�6�Br c��d}|jj|�|j|jj�|dzdtdz
zz�y)N�
Hello, world.r"rV)rrAr%r*r)�r�ss  r�testSimpleWritingzBufferTests.testSimpleWriting�sF�����	�	�����������,�,�.��E�	�E�V�a�Z�<P�0P�Qr c��d}|jj|�|jjt|��|jj	t
jg�|jjd�|j|jj�d|ddzdzdtdz
zz�y)Ns
hello, world.�Hr#r"rV)
rrAr\�len�
resetModesr�IRMr%r*r)rds  r�testOvertypezBufferTests.testOvertype�s������	�	������	�	� � ��Q��(��	�	���e�i�i�[�)��	�	���������I�I���!�D�1�Q�R�5�L�E�#9�E�V�a�Z�<P�#P�	
r c��d}|jj|�|jjt|��|jj	t
jg�|jjd�|j|jj�d|zdzdtdz
zz�y)Nsello, world.rhr"rV)
rrAr\ri�setModesrrkr%r*r)rds  r�
testInsertzBufferTests.testInsert�s������	�	������	�	� � ��Q��(��	�	���E�I�I�;�'��	�	���������I�I���!�D�1�H��#5���!��8L�#L�	
r c�X�d}|jjd�|jjd�|jj|�|j	|jj�d|jjdzz|zdzdtdz
zz�y)Nrcr2s




r"r[)rr8r7rAr%r*�fillr)rds  r�testWritingInTheMiddlez"BufferTests.testWritingInTheMiddle�s������	�	���Q���	�	����"��	�	���������I�I���!�������!�+�,�q�0�5�8�5�F�Q�J�;O�O�	
r c�4�d}|jjtdz
�|jj|�|j	|jj�|ddj
t�dz|ddzdzdtdz
zz�y)Nrcr2r"r3)rr7r'rAr%r*�rjustr)rds  r�testWritingWrappedAtEndOfLinez)BufferTests.testWritingWrappedAtEndOfLine�s������	�	�����	�*��	�	���������I�I���!�
�b�q�E�K�K����&��1�2��.��6��&�1�*�9M�M�	
r c���|jj�|j|jj�d�|jj	t
�|j|jj�dt
dz
f�|jj�|j|jj�dt
dz
f�y)N�rr#rr#)r�indexr%r+r8r)rs r�	testIndexzBufferTests.testIndex�s����	�	����������7�7�9�6�B��	�	���V�$�������7�7�9�A�v��z�?�K��	�	����������7�7�9�A�v��z�?�Kr c��|jj�|j|jj�d�|jj	d�|j|jj�d�|jj�|j|jj�d�y)Nr$rV�rrVrw)r�reverseIndexr%r+r8rs r�testReverseIndexzBufferTests.testReverseIndex�s����	�	��� �������7�7�9�6�B��	�	���Q��������7�7�9�6�B��	�	��� �������7�7�9�6�Br c��|jj�|j|jj�d�|jj	d�|j|jj�d�|jj�|j|jj�d�y)zm
        C{nextLine} positions the cursor at the beginning of the row below the
        current row.
        rwr2r<r{N)r�nextLiner%r+r7rs r�
test_nextLinezBufferTests.test_nextLine�s���
	
�	�	����������7�7�9�6�B��	�	����"�������7�7�9�6�B��	�	����������7�7�9�6�Br c�@�|jjd�|jjd�|j|jj	�d�|jj�|jjd�|jj
d�|j|jj	�d�|jj�|j|jj	�d�y)Nr2r[)r[r2r3)r@�)rr8r7r%r+�
saveCursorr\�
restoreCursorrs r�testSaveCursorzBufferTests.testSaveCursor�s����	�	���Q���	�	����"�������7�7�9�6�B��	�	�����	�	���Q���	�	� � ��#�������7�7�9�7�C��	�	���!�������7�7�9�6�Br c�x�|jj�|jjd�|jjdd�}|j	|dd�|j	|dj
t�|jjdd�}|j	|dd�|j	|dj
t�|jj�|jjd�|jjdd�}|j	|dd�|j	|dj
t�|jjd	d�}|j	|dd�|j	|dj
t�y)
NsHirrhr#�is!!rV�!r3)
r�singleShift2rA�getCharacterr%�charsetr
r�singleShift3r�r�chs  r�testSingleShiftszBufferTests.testSingleShifts�sJ���	�	��� ��	�	�����
�Y�Y�
#�
#�A�q�
)������A���%�����A�����+�
�Y�Y�
#�
#�A�q�
)������A���%�����A�����+��	�	��� ��	�	�����
�Y�Y�
#�
#�A�q�
)������A���%�����A�����+�
�Y�Y�
#�
#�A�q�
)������A���%�����A�����+r c	�X�d}d}d}|jjd�|jj�|jjd�|jj�|jjd�t}d}|||fD]�}tt
|��D]X}|jj||�}|j|d|||dz�|j|dj|��Z|tk(xrtxst}|dz
}��y)	NsHellosWorldsBye!sHello
sWorld
sBye!
rr#)rrA�shiftOut�shiftInr�rangerir�r%r�r	)	r�s1�s2�s3�g�hre�ir�s	         r�testShiftingzBufferTests.testShifting�s��
��
��
���	�	���
�#��	�	�����	�	���
�#��	�	�����	�	���	�"���
���b�"��	�A��3�q�6�]�
3���Y�Y�+�+�A�q�1��� � ��A���!�a�!�e��5�� � ��A�����2�
3��R���B�$�"�A�
��F�A�
	r c�:�|jjtttt
�|jj
d�|jjt�|jj
d�|jjt�|jj
d�|jjt�|jj
d�|jjdd�}|j|dd�|j|dj�|j|dj�|j|dj�|j|dj�|jjdd�}|j|dd�|j|dj�|j|dj�|j|dj�|j|dj�|jjdd�}|j|dd�|j|dj�|j|dj�|j|dj�|j|dj�|jjdd�}|j|dd�|j|dj�|j|dj�|j|dj�|j|dj�y)	N�W�X�Y�Zrr#rVr3)r�selectGraphicRenditionrrrr
rArr�r%�
assertTrue�bold�	underline�blink�reverseVideo�assertFalser�s  r�testGraphicRenditionz BufferTests.testGraphicRenditions����	�	�(�(��y�%��O��	�	������	�	�(�(��0��	�	������	�	�(�(��/��	�	������	�	�(�(��.��	�	�����
�Y�Y�
#�
#�A�q�
)������A���%�����1��
�
�#�����1����(�����1����$�����1��*�*�+�
�Y�Y�
#�
#�A�q�
)������A���%�����A����$�����A����)�����A����%�����A��+�+�,�
�Y�Y�
#�
#�A�q�
)������A���%�����1����$�����A����$�����A����)�����A��+�+�,�
�Y�Y�
#�
#�A�q�
)������A���%�����1����$�����1��
�
�#�����A����)�����A��+�+�,r c��d}d}|jjtjtjztj
tjz�|jj|dz�|jjt�|jj|dz�tt|��D�]/}|jj|d�}|j|d|||dz�|j|djt�|j|dj �|j|dj"�|j|dj$�|j|dj&�|j|dj(tj�|j|dj*tj���2tt|��D�]/}|jj|d�}|j|d|||dz�|j|djt�|j|dj �|j|dj"�|j|dj$�|j|dj&�|j|dj(tj,�|j|dj*tj.���2y)Ns
Merry xmassJust kiddingr"rr#)rr�r�
FOREGROUND�RED�
BACKGROUND�GREENrArr�rir�r%r�rr�r�r�r�r��
foreground�
background�WHITE�BLACK)rr�r�r�r�s     r�testColorAttributeszBufferTests.testColorAttributes4sq��
��
���	�	�(�(�����
�
�*�F�,=�,=����,L�	
�	
�	�	����U�
�#��	�	�(�(��0��	�	����U�
�#��s�2�w��		=�A����'�'��1�-�B����R��U�B�q�1�q�5�M�2����R��U�]�]�B�/����R��U�Z�Z�(����R��U�_�_�-����R��U�[�[�)����R��U�/�/�0����R��U�-�-�v�z�z�:����R��U�-�-�v�|�|�<�		=��s�2�w��		=�A����'�'��1�-�B����R��U�B�q�1�q�5�M�2����R��U�]�]�B�/����R��U�Z�Z�(����R��U�_�_�-����R��U�[�[�)����R��U�/�/�0����R��U�-�-�v�|�|�<����R��U�-�-�v�|�|�<�		=r c�b�d}d}d}|jjdj|||f�dz�|jjdd�|jj	�|j|jj
�|dzdz|zdzdtdz
zz�y)Nsline 1sline 2sline 3r"r#r@)rrA�joinr`�	eraseLiner%r*r)�rr�r�r�s    r�
testEraseLinezBufferTests.testEraseLineTs���
��
��
���	�	����
�
�B��B�<�0�5�8�9��	�	� � ��A�&��	�	��������I�I���!���J����#�e�+�e�v��z�.B�B�	
r c�"�d}|jj|�|jjd�|jj�|j	|jj�|dddzdtdz
zz�y)Nrcr2���r"rV)rrAr\�eraseToLineEndr%r*r)rds  r�testEraseToLineEndzBufferTests.testEraseToLineEndaso�����	�	������	�	� � ��#��	�	� � �"�������,�,�.��#�2�����&�ST�*�AU�0U�Vr c�R�d}|jj|�|jjd�|jj�|j	|jj�|ddj
t|��dzdtdz
zz�y)Nrcr2���r"rV)	rrAr\�eraseToLineBeginningr%r*rtrir)rds  r�testEraseToLineBeginningz$BufferTests.testEraseToLineBeginninghs������	�	������	�	� � ��#��	�	�&�&�(�����I�I���!�1�R�S�6�<�<��A��#7�%�#?�%�6�TU�:�BV�#V�	
r c��|jjd�|jjd�|jj�|j|jj	�dt
dz
z�y)NsHello world
sGoodbye world
r"r#)rrA�eraseDisplayr%r*r)rs r�testEraseDisplayzBufferTests.testEraseDisplayqsZ���	�	���(�)��	�	���*�+��	�	��� �������,�,�.���!��0D�Er c�X�d}d}|jjdj||df��|jjdd�|jj	�|j|jj
�|dz|ddzdzdtdz
zz�y)N�Hello world�
Goodbye worldr"r r2r#r3)rrAr�r`�eraseToDisplayEndr%r*r)�rr�r�s   r�testEraseToDisplayEndz!BufferTests.testEraseToDisplayEndxs���
��
���	�	����
�
�B��C�=�1�2��	�	� � ��A�&��	�	�#�#�%�����I�I���!�2��:��2�A��#6��#>��&�ST�*�AU�#U�	
r c	��d}d}|jjdj||f��|jjdd�|jj	�|j|jj
�d|ddjt|��zdzdtdz
zz�y)Nr�r�r"r2r#�r3)
rrAr�r`�eraseToDisplayBeginningr%r*rtrir)r�s   r�testEraseToDisplayBeginningz'BufferTests.testEraseToDisplayBeginning�s���
��
���	�	����
�
�B��8�,�-��	�	� � ��A�&��	�	�)�)�+�����I�I���!��B�q�r�F�L�L��R��)�)�E�1�E�V�a�Z�4H�H�	
r c�V�d}d}|jjdj||f��|jjdd�|jj	�|j|jj
�|dzdz|zdzdtdz
zz�y)Nr�r�r"r[r#r@)rrAr�r`�
insertLiner%r*r)r�s   r�testLineInsertionzBufferTests.testLineInsertion�s���
��
���	�	����
�
�B��8�,�-��	�	� � ��A�&��	�	��������I�I���!���J����#�e�+�e�v��z�.B�B�	
r c�V�d}d}d}|jjdj|||f��|jjdd�|jj	�|j|jj
�|dz|zdzdtdz
zz�y)Nr�sMiddle wordsr�r"r_r#r3)rrAr�r`�
deleteLiner%r*r)r�s    r�testLineDeletionzBufferTests.testLineDeletion�s���
��
��
���	�	����
�
�B��B�<�0�1��	�	� � ��A�&��	�	��������I�I���!�2��:��?�U�#:�U�f�q�j�=Q�#Q�	
r N��return�None)%�__name__�
__module__�__qualname__rr,r0r:r=rBrJrMrOrTrWr]rarfrlrorrruryr}r�r�r�r�r�r�r�r�r�r�r�r�r�r��r rrrs���#�C�
�C�C�C�	;�	;�L�	C�G�	C�C�R�

�
�
�
�L�C�
C�	C�,�.�($-�L=�@
�W�
�F�	
�

�

�

r rc�L�eZdZdZdZ												dd�Zdd�Zd	d�Zd	d�Zy)
�FakeDelayedCallFc�J�||_||_||_||_||_yr)�fs�timeout�f�a�kw)rr�r�r�r�r�s      r�__init__zFakeDelayedCall.__init__�s'����������������r c�8�|jxs|jSr)�	cancelled�calledrs r�activezFakeDelayedCall.active�s���N�N�1�d�k�k�2�2r c��d|_y�NT)r�rs r�cancelzFakeDelayedCall.cancel�s	����r c�^�d|_|j|ji|j��yr�)r�r�r�r�rs r�callzFakeDelayedCall.call�s$������������"�$�'�'�"r N)r��
FakeSchedulerr��floatr��Callable[..., None]r�ztuple[object, ...]r�zdict[str, object]r�r�)r��boolr�)	r�r�r�r�r�r�r�r�r�r�r rr�r��sZ��
�F��I�������	�
��
�
�
��3��
#r r�c�0�eZdZdd�Z										dd�Zy)r�c��g|_yr)�callsrs rr�zFakeScheduler.__init__�s	��,.��
r c	�p�|jjt|||||��|jdS)N���)r��appendr�)rr�r�r�r�s     r�	callLaterzFakeScheduler.callLater�s1��	
�
�
���/�$���A�r�B�C��z�z�"�~�r Nr�)
r�r�r�r�r��objectr�r�r�r�)r�r�r�r�r�r�r rr�r��s4��/����!4��:@��HN��	�r r�c�T�eZdZdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Z	dd�Z
dd	�Zy
)
�ExpectTestsc��tj�|_|jj�t	�|_yr)r�ExpectableBufferrrr�r�rs rrzExpectTests.setUp�s+���+�+�-��	��	�	� � �"��/��r c�N�g}|jjdd|j��}|j|j�|jjd�|j
|�|jjd�|j|�|j|dj�d�|jt|jj�d�|j
|jjdj��y)N�hello worldr#�r��	schedulersgreeting puny earthlings
shello world
r)
r�expectr��addCallbackr�rAr�r�r%�grouprir�r��r�result�ds   r�testSimpleStringzExpectTests.testSimpleString�s���(*���I�I���^�Q�$�'�'��J��	�
�
�f�m�m�$��	�	���5�6����� ��	�	���(�)��������������*�N�;�����T�W�W�]�]�+�Q�/���������q�)�0�0�2�3r c���g}|jjd�}|j|j�|j	|�|jjd�|j	|�|jjd�|j	|�|jjd�|j
|�|j|dj�d�y)Nr��hello sworl�dr)	rr�rr�r�rAr�r%rrs   r�testBrokenUpStringzExpectTests.testBrokenUpString�s���(*���I�I���^�,��	�
�
�f�m�m�$����� ��	�	���	�"����� ��	�	���� ����� ��	�	������������������*�N�;r c��g}|jjd�}|j|j�|jjd�}|j|j�|j	|�|jjd�|j	|�|jjd�|j
t|�d�|jjd�|j
t|�d�|j
|dj�d�|j
|dj�d�y)Nr�worldshello� r#rVr)	rr�rr�r�rAr%rir�rr�d1�d2s    r�testMultiplezExpectTests.testMultiple�s���(*��
�Y�Y�
�
�i�
(��
���v�}�}�%�
�Y�Y�
�
�h�
'��
���v�}�}�%����� ��	�	����!����� ��	�	���������V��a�(��	�	����!�����V��a�(���������*�I�6���������*�H�5r c��|jjd�g}|jjd�}|j|j�|j|�|j
|dj�d�y)Nr�r)rrAr�rr�r�r%rrs   r�testSynchronouszExpectTests.testSynchronoussb���	�	����'�(*���I�I���^�,��	�
�
�f�m�m�$��������������*�N�;r c���|jjd�g}|jjd�}|j|j�|jjd�}|j|j�|jt
|�d�|j|dj�d�|j|dj�d�y)Ns
goodbye worldsbyerrVrr#)rrAr�rr�r%rirr
s    r�testMultipleSynchronousz#ExpectTests.testMultipleSynchronous
s����	�	���(�)�(*��
�Y�Y�
�
�f�
%��
���v�}�}�%�
�Y�Y�
�
�h�
'��
���v�}�}�%�����V��a�(���������*�F�3���������*�H�5r c��|jt|d��|j|jtj
�y)N�type)r��hasattrr%rr�ExpectationTimeout)r�ress  r�_cbTestTimeoutFailurez!ExpectTests._cbTestTimeoutFailures/�������V�,�-�������6�#<�#<�=r c���|jjdd|j��}|j|j�|jj
dj
�y)Nr�r#r�r)rr�r��addBothrr�r�)rrs  r�testTimeoutFailurezExpectTests.testTimeoutFailuresL���I�I���^�Q�$�'�'��J��	�	�	�$�,�,�-����
�
�a����r c��|jjd�g}|jjdd|j��}|j	|j
�|jjd�}|j
|j�|jjdj�|jt|�d�|j|dj�d�y)Nsnot zoomtasticr�r#r�szoomr)
rrAr�r�rrrr�r�r�r%rirr
s    r�testOverlappingTimeoutz"ExpectTests.testOverlappingTimeout#s����	�	���)�*�(*��
�Y�Y�
�
�n�a�4�7�7�
�
K��
�
�
�4�-�-�.�
�Y�Y�
�
�g�
&��
���v�}�}�%����
�
�a���������V��a�(���������*�G�4r Nr�)rzfailure.Failurer�r�)r�r�r�rrr	rrrrrrr�r rr�r��s/��"�
4�<�6�"<�6�>� �
5r r�c� �eZdZdZdd�Zdd�Zy)�CharacterAttributeTestszG
    Tests for L{twisted.conch.insults.helper.CharacterAttribute}.
    c
��|jtj�tj��|jtj�tjt���|jtjddddtj��tjddddtj���|jtj�tjt���|jtjd��tjd���y)z�
        L{CharacterAttribute}s must have matching character attribute values
        (bold, blink, underline, etc) with the same values to be considered
        equal.
        )r�TF)r�r�r�r�r��r�N)r%r�CharacterAttributer�BLUE�assertNotEqualr	rs r�
test_equalityz%CharacterAttributeTests.test_equality7s���	
����2�2�4�f�6O�6O�6Q�R�����%�%�'��)B�)B�2�)N�	
�	
����%�%����!�!�;�;�
�
�%�%����!�!�;�;�
�	
�"	
����%�%�'��)B�)B�2�)N�	
�	
����%�%�4�0�&�2K�2K�QV�2W�	
r c�,�tj�jd��|j|jg�}|jt
|�d�|j|ddt�d}|j|ddd|z�y	)
z~
        L{twisted.conch.insults.helper.CharacterAttribute.wantOne} emits
        a deprecation warning when invoked.
        Tr#r#r�categoryz5twisted.conch.insults.helper._FormattingState.wantOne�messagez#%s was deprecated in Twisted 13.1.0N)r�_FormattingState�wantOne�
flushWarnings�test_wantOneDeprecatedr%ri�DeprecationWarning)r�
warningsShown�deprecatedClasss   rr.z.CharacterAttributeTests.test_wantOneDeprecated\s���	���!�)�)�t�)�4��*�*�D�,G�,G�+H�I�
�����]�+�Q�/�����q�)�*�5�7I�J�Q������!��Y�'�1�_�E�	
r Nr�)r�r�r��__doc__r'r.r�r rr!r!2s���#
�J
r r!)�
__future__r�re�typingr�twisted.conch.insultsr�twisted.conch.insults.insultsrrrr	r
rrr
rrr�twisted.pythonr�
twisted.trialrr'r)�TestCaserr�r�r�r!r�r r�<module>r;s���#�	��(�����#�"�
��	��G
�(�#�#�G
�T#�#�>��]5�(�#�#�]5�@9
�h�/�/�9
r 

Zerion Mini Shell 1.0