%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core22/current/usr/share/subiquity/subiquitycore/tests/__pycache__/
Upload File :
Create Path :
Current File : //snap/core22/current/usr/share/subiquity/subiquitycore/tests/__pycache__/test_view.cpython-310.pyc

o

K��^�@s`ddlZddlmZddlmZddlmZmZddlm	Z	Gdd�de�Z
Gdd	�d	e�ZdS)
�N)�SubiTestCase)�BaseView)�Stretchy�StretchyOverlay)�
undisabledcs4eZdZdZZ�fdd�Zdd�Zdd�Z�ZS)�InstrumentedStretchyFcst��dt�d�gdd�dS)N�r)�super�__init__�urwid�Text��self��	__class__��5/usr/share/subiquity/subiquitycore/tests/test_view.pyr
szInstrumentedStretchy.__init__cC�
d|_dS�NT)�
was_openedr
rrr�opened�
zInstrumentedStretchy.openedcCrr)�
was_closedr
rrr�closed rzInstrumentedStretchy.closed)	�__name__�
__module__�__qualname__rrr
rr�
__classcell__rrrrrs
rc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�TestBaseViewcCs8|j}g}t|t�r|�|j�t|j�}t|t�s
|S�N)�_w�
isinstancer�append�stretchyr�bottom_w)r�view�rrrr�get_stretchy_chain&s


�zTestBaseView.get_stretchy_chaincCs�tt�d��}t�}|�|�|�g�|�|�|�|j�|�|�|�|g�|�	�|�|j
�|�|�|�g�|�|�|�	|�|�|�|�g�dS�Nr)rrrr�assertEqualr'�show_stretchy_overlay�
assertTruer�remove_overlayr)r�bv�srrr�
test_basic.s


zTestBaseView.test_basiccCsJtt�d��}t�}t�}t�}|�|�|�|�|�|�||||fSr()rrrrr*�rr-�a�b�crrr�make_view_with_overlays>s


z$TestBaseView.make_view_with_overlayscCs|��\}}}}|�|�|�|||g�|��\}}}}|�|�|�|j�|�|�|�||g�|��\}}}}|�|�|�|j�|�|�|�||g�|��\}}}}|�|�|�|j�|�|�|�||g�|��\}}}}|��|�|j�|�|�|�||g�dSr)r4r)r'r,r+rr0rrr�
test_multipleHs$


zTestBaseView.test_multipleN)rrrr'r/r4r5rrrrr$s

r)r�subiquitycore.testsr�subiquitycore.viewr�subiquitycore.ui.stretchyrr�subiquitycore.ui.utilsrrrrrrr�<module>s

Zerion Mini Shell 1.0