File: //usr/lib/python3/dist-packages/twisted/conch/test/__pycache__/test_window.cpython-310.pyc
o
�bA � @ sH d Z ddlmZmZmZ ddlmZ G dd� de�ZG dd� de�ZdS ) zJ
Tests for the insults windowing module, L{twisted.conch.insults.window}.
� )�ScrolledArea�
TextOutput� TopWindow)�TestCasec @ � e Zd ZdZdd� ZdS )�TopWindowTestszB
Tests for L{TopWindow}, the root window container class.
c s� 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.
c s
� � d �S )N)�append� ��paintsr �@/usr/lib/python3/dist-packages/twisted/conch/test/test_window.py�<lambda> s
z5TopWindowTests.test_paintScheduling.<locals>.<lambda>� N)r r �assertEqual�repaint�len�pop)�self� scheduled�rootr r
r �test_paintScheduling s"