%PDF- %PDF-
Mini Shell

Mini Shell

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

�

Ϫ�f���l�dZddlmZddlmZddlmZmZmZddl	m
Z
Gd�de
�ZGd�d	e
�Zy
)zJ
Tests for the insults windowing module, L{twisted.conch.insults.window}.
�)�annotations)�Callable)�ScrolledArea�
TextOutput�	TopWindow)�TestCasec��eZdZdZdd�Zy)�TopWindowTestszB
    Tests for L{TopWindow}, the root window container class.
    c���g�g}t�fd�|j�}|j�g�|j|g�|j�|j�g�|jt	|�d�|j�|j�g�|jt	|�d�|j��|jt	��d�|j|g�|j�|jt	��d�|jt	|�d�y)z�
        Verify that L{TopWindow.repaint} schedules an actual paint to occur
        using the scheduling object passed to its initializer.
        c�&���jd�S)N)�append)�paintss��@/usr/lib/python3/dist-packages/twisted/conch/test/test_window.py�<lambda>z5TopWindowTests.test_paintScheduling.<locals>.<lambda>s������t�!4���N)rr
�assertEqual�repaint�len�pop)�self�	scheduled�rootrs   @r�test_paintSchedulingz#TopWindowTests.test_paintSchedulings	���
 ��02�	��4�i�6F�6F�G��	
�����$�����B�'�	
���������$�����Y���+�	
���������$�����Y���+�	�	�
�
�������V��a�(�����B�'�	
��������V��a�(�����Y���+rN��return�None)�__name__�
__module__�__qualname__�__doc__r�rrr
r
s���!,rr
c��eZdZdZdd�Zy)�ScrolledAreaTestsz�
    Tests for L{ScrolledArea}, a widget which creates a viewport containing
    another widget and can reposition that viewport using scrollbars.
    c���t�}t|�}|j|j|j�|j|jj|�y)z�
        The parent of the widget passed to L{ScrolledArea} is set to a new
        L{Viewport} created by the L{ScrolledArea} which itself has the
        L{ScrolledArea} instance as its parent.
        N)rr�assertIs�parent�	_viewport)r�widget�scrolleds   r�test_parentzScrolledAreaTests.test_parent;sG�������'���
�
�f�m�m�X�%7�%7�8��
�
�h�(�(�/�/��:rNr)rrr r!r+r"rrr$r$5s���
	;rr$N)
r!�
__future__r�typingr�twisted.conch.insults.windowrrr�twisted.trial.unittestrr
r$r"rr�<module>r0s4���#��L�L�+�&,�X�&,�R;��;r

Zerion Mini Shell 1.0