%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core20/2599/usr/share/subiquity/subiquitycore/tests/__pycache__/
Upload File :
Create Path :
Current File : //snap/core20/2599/usr/share/subiquity/subiquitycore/tests/__pycache__/test_view.cpython-38.pyc

U

K��^��@s`ddlZddlmZddlmZddlmZmZddlm	Z	Gdd�de�Z
Gdd	�d	e�ZdS)
�N)�SubiTestCase)�BaseView)�Stretchy�StretchyOverlay)�
undisabledcs4eZdZdZZ�fdd�Zdd�Zdd�Z�ZS)�TestStretchyFcst��dt�d�gdd�dS)N�r)�super�__init__�urwid�Text��self��	__class__��5/usr/share/subiquity/subiquitycore/tests/test_view.pyr
szTestStretchy.__init__cCs
d|_dS�NT)�
was_openedr
rrr�openedszTestStretchy.openedcCs
d|_dSr)�
was_closedr
rrr�closed szTestStretchy.closed)	�__name__�
__module__�__qualname__rrr
rr�
__classcell__rrrrrsrc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�TestBaseViewcCs0|j}g}t|t�r,|�|j�t|j�}q
|S�N)Z_w�
isinstancer�appendZstretchyrZbottom_w)rZview�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)r.r#r!r&r%rr*rrr�
test_multipleHs$


zTestBaseView.test_multipleN)rrrr!r)r.r/rrrrr$s
r)rZsubiquitycore.testsrZsubiquitycore.viewrZsubiquitycore.ui.stretchyrrZsubiquitycore.ui.utilsrrrrrrr�<module>s

Zerion Mini Shell 1.0