HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/conch/test/__pycache__/test_window.cpython-38.pyc
U


W[C�@sHdZddlmZddlmZmZmZGdd�de�ZGdd�de�ZdS)	zJ
Tests for the insults windowing module, L{twisted.conch.insults.window}.
�)�TestCase)�	TopWindow�ScrolledArea�
TextOutputc@seZdZdZdd�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��Zpaintsr�@/usr/lib/python3/dist-packages/twisted/conch/test/test_window.py�<lambda>�z5TopWindowTests.test_paintScheduling.<locals>.<lambda>�N)rrZassertEqualZrepaint�len�pop)�selfZ	scheduled�rootrr	r
�test_paintSchedulings"
z#TopWindowTests.test_paintSchedulingN)�__name__�
__module__�__qualname__�__doc__rrrrr
rsrc@seZdZdZdd�ZdS)�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)rrZassertIs�parentZ	_viewport)rZwidgetZscrolledrrr
�test_parent:szScrolledAreaTests.test_parentN)rrrrrrrrr
r5srN)	rZtwisted.trial.unittestrZtwisted.conch.insults.windowrrrrrrrrr
�<module>s*