https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /lib/python3/dist-packages/twisted/conch/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/twisted/conch/test/__pycache__/test_window.cpython-310.pyc
o

�bA�@sHdZddlmZmZmZddlmZGdd�de�ZGdd�de�ZdS)	zJ
Tests for the insults windowing module, L{twisted.conch.insults.window}.
�)�ScrolledArea�
TextOutput�	TopWindow)�TestCasec@�eZdZdZdd�ZdS)�TopWindowTestszB
    Tests for L{TopWindow}, the root window container class.
    cs�g�g}t�fdd�|j�}|��g�|�|g�|��|��g�|�t|�d�|��|��g�|�t|�d�|���|�t��d�|�|g�|��|�t��d�|�t|�d�dS)z�
        Verify that L{TopWindow.repaint} schedules an actual paint to occur
        using the scheduling object passed to its initializer.
        cs
��d�S)N)�append���paintsr	�@/usr/lib/python3/dist-packages/twisted/conch/test/test_window.py�<lambda>s
z5TopWindowTests.test_paintScheduling.<locals>.<lambda>�N)rr�assertEqual�repaint�len�pop)�self�	scheduled�rootr	r
r�test_paintSchedulings"
z#TopWindowTests.test_paintSchedulingN)�__name__�
__module__�__qualname__�__doc__rr	r	r	rr	src@r)�ScrolledAreaTestsz�
    Tests for L{ScrolledArea}, a widget which creates a viewport containing
    another widget and can reposition that viewport using scrollbars.
    cCs2t�}t|�}|�|j|j�|�|jj|�dS)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�scrolledr	r	r�test_parent8szScrolledAreaTests.test_parentN)rrrrr!r	r	r	rr2srN)	r�twisted.conch.insults.windowrrr�twisted.trial.unittestrrrr	r	r	r�<module>s
)

https://t.me/RX1948 - 2025